BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
A wrapper for underlying material implementation.
Public Member Functions | |
Material (const Material &material) | |
Material | inverted () const |
Constructs a material with inverted magnetization. More... | |
bool | isDefaultMaterial () const |
Returns true if material has refractive index of (1.0, 0.0) and zero magnetization. More... | |
bool | isEmpty () const |
Returns true if material underlying data is nullptr. More... | |
bool | isMagneticMaterial () const |
bool | isScalarMaterial () const |
Indicates whether the interaction with the material is scalar. This means that different polarization states will be diffracted equally. More... | |
R3 | magnetization () const |
Get the magnetization (in A/m) More... | |
complex_t | materialData () const |
Returns delta + i beta. More... | |
std::string | materialName () const |
Returns the name of material. More... | |
Material & | operator= (const Material &other) |
SpinMatrix | polarizedSubtrSLD (const WavevectorInfo &wavevectors) const |
Returns ( - sld) matrix with magnetization corrections. More... | |
complex_t | refractiveIndex (double wavelength) const |
Returns refractive index. More... | |
complex_t | refractiveIndex2 (double wavelength) const |
Returns squared refractive index. More... | |
Material | rotatedMaterial (const RotMatrix &transform) const |
complex_t | scalarSubtrSLD (const WavevectorInfo &wavevectors) const |
Returns ( - sld), sld (in ) being the scattering length density. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &ostr, const Material &mat) |
Material::Material | ( | const Material & | material | ) |
Material Material::inverted | ( | ) | const |
Constructs a material with inverted magnetization.
bool Material::isDefaultMaterial | ( | ) | const |
Returns true if material has refractive index of (1.0, 0.0) and zero magnetization.
bool Material::isEmpty | ( | ) | const |
Returns true if material underlying data is nullptr.
bool Material::isMagneticMaterial | ( | ) | const |
bool Material::isScalarMaterial | ( | ) | const |
Indicates whether the interaction with the material is scalar. This means that different polarization states will be diffracted equally.
R3 Material::magnetization | ( | ) | const |
Get the magnetization (in A/m)
complex_t Material::materialData | ( | ) | const |
Returns delta + i beta.
std::string Material::materialName | ( | ) | const |
Returns the name of material.
SpinMatrix Material::polarizedSubtrSLD | ( | const WavevectorInfo & | wavevectors | ) | const |
Returns ( - sld) matrix with magnetization corrections.
complex_t Material::refractiveIndex | ( | double | wavelength | ) | const |
Returns refractive index.
complex_t Material::refractiveIndex2 | ( | double | wavelength | ) | const |
Returns squared refractive index.
complex_t Material::scalarSubtrSLD | ( | const WavevectorInfo & | wavevectors | ) | const |
Returns ( - sld), sld (in ) being the scattering length density.
|
friend |