Package reflectometry :: Package model1d :: Package tests :: Module test_reflAtExtreme

Module test_reflAtExtreme

source code

Cross check the extreme cases: 1) sigma=0 matches sigma=1e-10 2) reflectivity at Q==0 is 1 3) d=0 is ok, and about equal t0 d=1.0e-10 4) no layers works (only incident and substrate) 5) polarized calculations match non-polarized when rho_m is 0.
Classes
  TestSigmaAtZero
Cross check that sigma=0 matches sigma=1e-10
  TestQAtZero
Check that reflectivity at Q==0 is 1
  TestDepthAtZero
check d=0 is ok, and about equal t0 d=1.0e-10
  TestNoLayer
Check that no layers works (only incident and substrate)
  TestPolarizedCalcMatchNonpolarized
Check that polarized calculations match non-polarized when rho_m is 0.
Variables
  Q = linspace(-0.3, 0.3, 11)
  depth = array([100, 100, 35, 17, 100])
  rho = array([0, 1.87, 1.7, 3.8, 2.07])
  mu = array([0, 0.01, 0.01, 0.01, 0.01])
  sigma = array([0.0]* 5)
  sigma2 = array([1.0e-10]* 5)