BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Methods to compute polarized propagation directions and fluxes as function of slice.
Implements the transfer matrix formalism for the calculation of wave amplitudes of the coherent wave solution in a sample with magnetization. For a description, see internal document "Polarized Implementation of the Transfer Matrix Method"
Functions | |
Fluxes | fluxes (const SliceStack &slices, const R3 &k, bool forward) |
Computes refraction angle reflection/transmission coefficients for given sliced sample and wavevector k. More... | |
SpinMatrix | topLayerR (const SliceStack &slices, const std::vector< complex_t > &kzs, bool forward) |
Computes the Fresnel R coefficient for the top layer only Introduced in order to speed up pure reflectivity computations. More... | |
Fluxes Compute::SpecularMagnetic::fluxes | ( | const SliceStack & | slices, |
const R3 & | k, | ||
bool | forward | ||
) |
Computes refraction angle reflection/transmission coefficients for given sliced sample and wavevector k.
Definition at line 176 of file ComputeFluxMagnetic.cpp.
References ASSERT, Compute::Kz::computeReducedKz(), and SliceStack::roughnessModel().
Referenced by reSample::fluxesIn(), reSample::fluxesOut(), and DepthProbeComputation::runProtected().
SpinMatrix Compute::SpecularMagnetic::topLayerR | ( | const SliceStack & | slices, |
const std::vector< complex_t > & | kzs, | ||
bool | forward | ||
) |
Computes the Fresnel R coefficient for the top layer only Introduced in order to speed up pure reflectivity computations.
Definition at line 191 of file ComputeFluxMagnetic.cpp.
References SpinMatrix::a, ASSERT, SpinMatrix::b, SliceStack::bottomRoughness(), SpinMatrix::c, SpinMatrix::d, SpinMatrix::determinant(), N, SpinMatrix::One(), and SliceStack::roughnessModel().
Referenced by SpecularComputation::runProtected().