absco_slab - absorption corrections for an infinite flat slab

**#include <absco.h**>

**void absco_slab ( double *A_S_SC, double *A_C_SC, double *A_C_C, double scattering_angle, double mu_i_S, double mu_f_S, double mu_i_C, double mu_f_C, double slab angle, double thickness_S, double thickness_C_inner, double thickness_C_outer );**

**Output pointers.**

***A_S_SC**-
Absorption factor for scattering in S, absorption in S an C. See

**absco**(7) for a definition of absorption factors. ***A_C_SC**-
Absorption factor for scattering in C, absorption in S an C. If it is a null pointer, all cell-related computations are skipped.

***A_C_C**-
Absorption factor for scattering in C, absorption in C. Must be a null pointer iff A_C_SC is a null pointer.

**Generic input arguments.**

**scattering_angle**-
The scattering angle in degrees, must be between 0 and 180.

**mu_i_S**-
Attenuation coefficient for the incoming beam in the sample material, in inverse length units.

**mu_f_S**-
Attenuation coefficient for the outgoing beam in the sample material. May differ from

**mu_i_S**in the case of inelastic scattering. **mu_i_C**-
Attenuation coefficient for the incoming beam in the container material.

**mu_f_C**-
Attenuation coefficient for the outgoing beam in the container material. May differ from

**mu_i_C**in the case of inelastic scattering.

**Input arguments for slab geometry.**

**slab_angle**-
Slab orientation, in degrees. The angle between the transmitted beam and the slab plane. Typically, it varies between 45 deg (scattering mostly in reflection) and 135 deg (scattering mostly in transmission).

**thickness_S**-
Thickness of the sample layer.

**thickness_C_front**-
Thickness of the front side of the sample container.

**thickness_C_rear**-
Thickness of the back side of the sample container.

On error, a message is written to stderr, and the program exits with errno

**absco**(7), **transmission_slab**(3), **absco_tube**(3), **print-absco**(1)

Web site: http://apps.jcns.fz-juelich.de/absco

J. Wuttke, libabsco white paper: "Absorption-Correction Factors for Scattering from Flat or Tubular Samples: Open-Source Implementation libabsco, and Why it Should be Used with Caution." See web site for reference.

Joachim Wuttke <j.wuttke@fz-juelich.de>

Copyright (C) 2011-12 Joachim Wuttke.

Software: GNU General Public License (GPL).

This documentation: Creative Commons Attribution Share Alike.