20 : m_thickness{thickness}, m_material{material}, m_B_field{}, m_top_roughness{nullptr}
25 : m_thickness{thickness}
26 , m_material{material}
28 , m_top_roughness{top_roughness.clone()}
33 : m_thickness{other.m_thickness}
34 , m_material{other.m_material}
35 , m_B_field{other.m_B_field}
44 : m_thickness{other.m_thickness}
45 , m_material{
std::move(other.m_material)}
46 , m_B_field{other.m_B_field}
47 , m_top_roughness{
std::move(other.m_top_roughness)}
std::complex< double > complex_t
Defines class LayerRoughness.
Declares functions in namespace MaterialUtils.
double mag() const
Returns magnitude of the vector.
void setZ(const T &a)
Sets z-component in cartesian coordinate system.
A roughness of interface between two layers.
A wrapper for underlying material implementation.
kvector_t magnetization() const
Get the magnetization (in A/m)
complex_t refractiveIndex(double wavelength) const
Returns refractive index.
Data structure containing the data of a single slice, for calculating the Fresnel coefficients.
Slice & operator=(const Slice &other)
std::unique_ptr< LayerRoughness > m_top_roughness
kvector_t m_B_field
cached value of magnetic induction
complex_t scalarReducedPotential(kvector_t k, double n_ref) const
Return the potential term that is used in the one-dimensional Fresnel calculations.
void setMaterial(const Material &material)
const Material & material() const
Slice(double thickness, const Material &material)
const LayerRoughness * topRoughness() const
static constexpr double Magnetic_Permeability
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.
complex_t ScalarReducedPotential(complex_t n, kvector_t k, double n_ref)
Function for calculating the reduced potential, used for obtaining the Fresnel coefficients (non-pola...
Eigen::Matrix2cd PolarizedReducedPotential(complex_t n, kvector_t b_field, kvector_t k, double n_ref)
Function for calculating the reduced potential, used for obtaining the Fresnel coefficients (polarize...