BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Slice Class Reference

Data structure containing the data of a single slice, for calculating the Fresnel coefficients. More...

Public Member Functions

 Slice (double thickness, const Material &material)
 
 Slice (double thickness, const Material &material, const LayerRoughness &top_roughness)
 
 Slice (const Slice &other)
 
 Slice (Slice &&other)
 
Sliceoperator= (const Slice &other)
 
void setMaterial (const Material &material)
 
Material material () const
 
double thickness () const
 
const LayerRoughnesstopRoughness () const
 
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 magnetization.
 
void initBField (kvector_t h_field, double b_z)
 Initializes the magnetic B field from a given ambient field strength H.
 
kvector_t bField () const
 
void invertBField ()
 

Static Public Attributes

static constexpr double Magnetic_Permeability = 4e-7 * M_PI
 

Detailed Description

Data structure containing the data of a single slice, for calculating the Fresnel coefficients.

Definition at line 27 of file Slice.h.


The documentation for this class was generated from the following files: