BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SpecularMagneticTanhStrategy.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/Specular/SpecularMagneticTanhStrategy.h
6 //! @brief Defines class SpecularMagneticTanhStrategy.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_SAMPLE_SPECULAR_SPECULARMAGNETICTANHSTRATEGY_H
21 #define BORNAGAIN_SAMPLE_SPECULAR_SPECULARMAGNETICTANHSTRATEGY_H
22 
24 
25 //! Implements the magnetic Fresnel computation with the analytical Tanh roughness
26 //!
27 //! Implements the transfer matrix formalism for the calculation of wave
28 //! amplitudes of the coherent wave solution in a multilayer with magnetization.
29 //! For a description, see internal
30 //! document "Polarized Implementation of the Transfer Matrix Method"
31 //!
32 //! @ingroup algorithms_internal
34 private:
35  virtual std::pair<Eigen::Matrix2cd, Eigen::Matrix2cd>
37  const MatrixRTCoefficients& coeff_i1, double sigma) const;
38 
39  Eigen::Matrix2cd computeRoughnessMatrix(const MatrixRTCoefficients& coeff, double sigma,
40  bool inverse = false) const;
41 };
42 
43 #endif // BORNAGAIN_SAMPLE_SPECULAR_SPECULARMAGNETICTANHSTRATEGY_H
44 #endif // USER_API
Defines class SpecularMagneticStrategy.
Specular reflection and transmission coefficients in a layer in case of magnetic interactions between...
Implements the magnetic Fresnel computation with Nevot-Croce roughness.
Implements the magnetic Fresnel computation with the analytical Tanh roughness.
virtual std::pair< Eigen::Matrix2cd, Eigen::Matrix2cd > computeBackwardsSubmatrices(const MatrixRTCoefficients &coeff_i, const MatrixRTCoefficients &coeff_i1, double sigma) const
Eigen::Matrix2cd computeRoughnessMatrix(const MatrixRTCoefficients &coeff, double sigma, bool inverse=false) const