21 m_beta(beta < 0. ? throw std::runtime_error(
22 "The imaginary part of the refractive index must be greater or equal zero")
40 return result * result;
57 ostr <<
"RefractiveMaterial:" <<
getName() <<
"<" <<
this <<
">{ "
std::complex< double > complex_t
Defines class RefractiveMaterialImpl.
const std::string & getName() const
Returns name of the material.
Basic implementation for magnetized material.
kvector_t magnetization() const override final
Returns the magnetization (in A/m)
Material implementation based on refractive coefficiencts (valid for one wavelength value only)
complex_t refractiveIndex2(double wavelength) const override
Returns squared refractive index.
complex_t materialData() const override
Returns underlying material data.
complex_t refractiveIndex(double wavelength) const override
Returns refractive index For this particular implementation returned value does not depend on passed ...
void print(std::ostream &ostr) const override
Prints object data.
RefractiveMaterialImpl * clone() const override
Returns pointer to a copy of material.
double m_delta
coefficient for refractive index
RefractiveMaterialImpl(const std::string &name, double delta, double beta, kvector_t magnetization)
complex_t scalarSubtrSLD(const WavevectorInfo &wavevectors) const override
Returns ( - sld), sld (in ) being the scattering length density.
double m_beta
coefficient for refractive index
Holds all wavevector information relevant for calculating form factors.
double getWavelength() const
const double wavelength(0.154)