16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_SAMPLE_LEGACYRT_SPECULARMAGNETICSTRATEGY_V2_H
21 #define BORNAGAIN_SAMPLE_LEGACYRT_SPECULARMAGNETICSTRATEGY_V2_H
43 using coeffs_t = std::vector<coefficient_pointer_type>;
52 const std::vector<complex_t>& kz)
const;
54 virtual std::variant<complex_t, Eigen::Matrix2cd>
56 const std::vector<complex_t>& kz)
const override;
59 static std::vector<MatrixRTCoefficients_v2>
computeTR(
const std::vector<Slice>& slices,
60 const std::vector<complex_t>& kzs);
76 const std::vector<Slice>& slices);
81 static std::pair<Eigen::Matrix2cd, complex_t>
Defines and implements class ISpecularStrategy.
Defines class MatrixRTCoefficients_v2.
Interface for the Fresnel computations, both in the scalar and magnetic case.
std::vector< std::unique_ptr< const ILayerRTCoefficients > > coeffs_t
Specular reflection and transmission coefficients in a layer in case of magnetic interactions between...
Data structure containing the data of a single slice, for calculating the Fresnel coefficients.
Implements the magnetic Fresnel computation without roughness.
static void propagateBackwardsForwards(std::vector< MatrixRTCoefficients_v2 > &coeff, const std::vector< Slice > &slices)
Propagates boundary conditions from the bottom to the top of the layer stack.
static std::pair< Eigen::Matrix2cd, complex_t > findNormalizationCoefficients(const MatrixRTCoefficients_v2 &coeff)
finds linear coefficients for normalizing transmitted wave to unity.
std::unique_ptr< const coefficient_type > coefficient_pointer_type
std::vector< coefficient_pointer_type > coeffs_t
virtual std::variant< complex_t, Eigen::Matrix2cd > computeTopLayerR(const std::vector< Slice > &slices, const std::vector< complex_t > &kz) const override
ISpecularStrategy::coeffs_t Execute(const std::vector< Slice > &slices, const kvector_t &k) const
Computes refraction angle reflection/transmission coefficients for given sliced multilayer and waveve...
static std::vector< MatrixRTCoefficients_v2 > computeTR(const std::vector< Slice > &slices, const std::vector< complex_t > &kzs)
static void setNoTransmission(MatrixRTCoefficients_v2 &coeff)
static void calculateTR(MatrixRTCoefficients_v2 &coeff)
Computes frobenius matrices for multilayer solution.
static void calculateZeroFieldTR(MatrixRTCoefficients_v2 &coeff)
static void nullifyBottomReflection(MatrixRTCoefficients_v2 &coeff)
initializes reflectionless bottom boundary condition.