BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
A number of materials-related helper functions for internal use. More...
Functions | |
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-polarized material case) | |
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 (polarized material case) | |
template<typename T > | |
Eigen::Matrix2cd | MagnetizationCorrection (complex_t unit_factor, double magnetic_factor, BasicVector3D< T > polarization) |
MATERIAL_TYPES | checkMaterialTypes (const std::vector< const Material * > &materials) |
Checks if all non-default materials in materials are of the same type and returns this type. More... | |
A number of materials-related helper functions for internal use.
MATERIAL_TYPES MaterialUtils::checkMaterialTypes | ( | const std::vector< const Material * > & | materials | ) |
Checks if all non-default materials in materials are of the same type and returns this type.
If several types of materials are involved, InvalidMaterialType identifier is returned.
Definition at line 70 of file MaterialUtils.cpp.