20 : m_thickness{thickness}, m_material{material}, m_B_field{}, mP_top_roughness{nullptr}
25 : m_thickness{thickness}, m_material{material}, m_B_field{}, mP_top_roughness{
26 top_roughness.clone()}
31 : m_thickness{other.m_thickness}, m_material{other.m_material}, m_B_field{other.m_B_field},
40 : m_thickness{other.m_thickness}, m_material{std::move(other.m_material)},
41 m_B_field{other.m_B_field}, mP_top_roughness{std::move(other.mP_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)
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.
Material material() const
void setMaterial(const Material &material)
std::unique_ptr< LayerRoughness > mP_top_roughness
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...