15 #ifndef BORNAGAIN_CORE_MULTILAYER_SLICE_H
16 #define BORNAGAIN_CORE_MULTILAYER_SLICE_H
37 void setMaterial(
const Material& material);
40 double thickness()
const;
54 kvector_t bField()
const {
return m_B_field; }
58 static constexpr
double Magnetic_Permeability = 4e-7 * M_PI;
64 std::unique_ptr<LayerRoughness> mP_top_roughness;
Defines and implements class Material.
A roughness of interface between two layers.
A wrapper for underlying material implementation.
Data structure containing the data of a single slice, for calculating the Fresnel coefficients.
complex_t scalarReducedPotential(kvector_t k, double n_ref) const
Return the potential term that is used in the one-dimensional Fresnel calculations.
Eigen::Matrix2cd polarizedReducedPotential(kvector_t k, double n_ref) const
Return the potential term that is used in the one-dimensional Fresnel calculations in the presence of...
void initBField(kvector_t h_field, double b_z)
Initializes the magnetic B field from a given ambient field strength H.