BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Declares functions in namespace MaterialUtils.
Definition in file MaterialUtils.h.
Go to the source code of this file.
Namespaces | |
MaterialUtils | |
A number of materials-related helper functions for internal use. | |
Macros | |
#define | BORNAGAIN_SAMPLE_MATERIAL_MATERIALUTILS_H |
Functions | |
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. More... | |
template<typename T > | |
SpinMatrix | MaterialUtils::MagnetizationCorrection (complex_t unit_factor, double magnetic_factor, Vec3< T > polarization) |
SpinMatrix | MaterialUtils::PolarizedReducedPotential (complex_t n, R3 b_field, R3 k, double n_ref) |
Function for calculating the reduced potential, used for obtaining the Fresnel coefficients (polarized material case) More... | |
complex_t | MaterialUtils::ScalarReducedPotential (complex_t n, R3 k, double n_ref) |
Function for calculating the reduced potential, used for obtaining the Fresnel coefficients (non-polarized material case) More... | |
#define BORNAGAIN_SAMPLE_MATERIAL_MATERIALUTILS_H |
Definition at line 21 of file MaterialUtils.h.