fresnel - Pure python Fresnel reflectivity calculator

Fresnel Function for computing the Fresnel reflectivity for a single interface.
test

Pure python Fresnel reflectivity calculator.

class refl1d.fresnel.Fresnel(rho=0, irho=0, sigma=0, Vrho=0, Virho=0)[source]

Function for computing the Fresnel reflectivity for a single interface.

Parameters:
rho, irho = 0 : float | 1e6 * inv Angstrom^2

real and imaginary scattering length density of backing medium

Vrho, Virho = 0 : float | 1e6 * inv Angstrom^2

real and imaginary scattering length density of incident medium

sigma = 0 : float | Angstrom

interfacial roughness

Returns:
fresnel : Fresnel

callable object for computing Fresnel reflectivity at Q

Note that we do not correct for attenuation of the beam through the incident medium since we do not know the path length.

reflectivity(Q)[source]

Compute the Fresnel reflectivity at the given Q/wavelength.

refl1d.fresnel.test()[source]