Package reflectometry :: Package model1d :: Package tests :: Module test_reflcalc

Module test_reflcalc

source code

Classes
  TestRefl
Functions
 
refl(*args, **kw)
Return reflectivity R^2 from slab model with sharp interfaces.
source code
 
reflamp(Q, depth, rho, mu=0, sigma=None, wavelength=1)
Returns the complex reflectivity waveform.
source code
 
magrefl(*args, **kw)
Magnetic reflectivity for slab models.
source code
 
magamp(Q, depth, rho, mu=0, wavelength=1, rho_m=0, theta_m=0, Aguide=-90.0)
Returns the complex magnetic reflectivity waveform.
source code
Function Details

refl(*args, **kw)

source code 

Return reflectivity R^2 from slab model with sharp interfaces. returns reflectivities.

The parameters are as follows:

Q (angstrom**-1)

points at which to evaluate the reflectivity

depth (angstrom)

thickness of the individual layers (incident and substrate depths are ignored)

rho (microNb)

Scattering length density.

mu (microNb)

absorption. Defaults to 0.

sigma (angstrom)

interface roughness between the current layer and the next. The final layer is ignored. This may be a scalar for fixed roughness on every layer, or None if there is no roughness.

wavelength (angstrom)

Incident wavelength (only affects absorption). May be a vector. Defaults to 1.

This function does not compute any instrument resolution corrections.

Use reflectivity_amplitude to return the complex waveform.

reflamp(Q, depth, rho, mu=0, sigma=None, wavelength=1)

source code 

Returns the complex reflectivity waveform.

See reflectivity for details.

magrefl(*args, **kw)

source code 

Magnetic reflectivity for slab models.

Returns the expected values for the four polarization cross sections (++,+-,-+,--).

Return reflectivity R^2 from slab model with sharp interfaces. returns reflectivities.

The parameters are as follows:

Q (angstrom**-1)

points at which to evaluate the reflectivity

depth (angstrom)

thickness of the individual layers (incident and substrate depths are ignored)

rho (microNb)

Scattering length density.

mu (microNb)

absorption. Defaults to 0.

wavelength (angstrom)

Incident wavelength (only affects absorption). May be a vector. Defaults to 1.

rho_m (microNb)

Magnetic scattering length density correction.

theta_m (degrees)

Angle of the magnetism within the layer.

Aguide (degrees)

Angle of the guide field; -90 is the usual case

This function does not compute any instrument resolution corrections or interface diffusion

Use magnetic_amplitude to return the complex waveform.

magamp(Q, depth, rho, mu=0, wavelength=1, rho_m=0, theta_m=0, Aguide=-90.0)

source code 

Returns the complex magnetic reflectivity waveform.

See magnetic_reflectivity for details.