Package reflectometry :: Package model1d :: Package tests :: Module polarizedmatrix

Module polarizedmatrix

source code

Pure numeric python implementation of the polarized optical matrix formalism.

Algorithm for polarized neutron reflectometry comes from the following:

C.F. Majrkzak, K.V. O'Donovan, N.F. Berk(2006);Polarized neutron reflectometry. In Neutron Scattering from Magnetic Materials, T. Chatterji, editor. Elsevier.

All the notation and the formula come from this paper.

This module serves as a cross check against the optimized fortran version that performs the real calculations in calcRefl. Note that the calcRefl version uses tricks to keep the calculation stable over a broad selection of models and Q ranges, so it does differ from the simple calculation after six significant figures.

Author: Ziwen Fu 02/26/2008

Functions
 
magnetic_amplitude(depth, rho, mu, wavelength, phi, theta, Qs, Aguide=-90) source code
 
magnetic_reflectivity(depth, rho, mu, wavelength, phi, theta, Qs, Aguide=-90) source code