BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
MaterialUtils.h File Reference

Declares functions in namespace MaterialUtils. More...

Go to the source code of this file.

Namespaces

 MaterialUtils
 A number of materials-related helper functions for internal use.
 

Functions

complex_t MaterialUtils::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 MaterialUtils::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 MaterialUtils::MagnetizationCorrection (complex_t unit_factor, double magnetic_factor, BasicVector3D< T > polarization)
 
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. More...
 

Detailed Description

Declares functions in namespace MaterialUtils.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file MaterialUtils.h.