19 Slice::Slice(
double thickness, 
const Material& material)
 
   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()}
 
   30 Slice::Slice(
const Slice& other)
 
   31     : m_thickness{other.m_thickness}, m_material{other.m_material}, m_B_field{other.m_B_field},
 
   34     if (other.mP_top_roughness) {
 
   35         mP_top_roughness.reset(other.mP_top_roughness->clone());
 
   39 Slice::Slice(
Slice&& other)
 
   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)}
 
   47     m_thickness = other.m_thickness;
 
   48     m_material = other.m_material;
 
   49     m_B_field = other.m_B_field;
 
   50     if (other.mP_top_roughness) {
 
   51         mP_top_roughness.reset(other.mP_top_roughness->clone());
 
   56 Slice::~Slice() = 
default;
 
   58 void Slice::setMaterial(
const Material& material)
 
   60     m_material = material;
 
   68 double Slice::thickness()
 const 
   75     return mP_top_roughness.get();
 
   92     m_B_field = Magnetic_Permeability * (h_field + m_material.
magnetization());
 
   96 void Slice::invertBField()
 
   98     m_B_field = -m_B_field;
 
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.
 
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.
 
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...