BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
A stack of Slices.
Definition at line 38 of file SliceStack.h.
Public Member Functions | |
SliceStack (const RoughnessModel roughness_model) | |
SliceStack (const SliceStack &other) | |
void | addNSlices (size_t n, double thickness, const Material &material, const LayerRoughness *roughness=nullptr) |
Adds n times the same slice to the stack. More... | |
void | addSlice (double thickness, const Material &material, const LayerRoughness *roughness=nullptr) |
void | addTopSlice (double zbottom, const Material &material) |
const LayerRoughness * | bottomRoughness (size_t i_slice) const |
bool | containsMagneticMaterial () const |
RoughnessModel | roughnessModel () const |
SliceStack | setBField (const R3 &externalField) |
Public Attributes | |
T | elements |
STL member. More... | |
Private Attributes | |
const RoughnessModel | m_roughness_model |
|
inline |
Definition at line 40 of file SliceStack.h.
SliceStack::SliceStack | ( | const SliceStack & | other | ) |
Definition at line 19 of file SliceStack.cpp.
void SliceStack::addNSlices | ( | size_t | n, |
double | thickness, | ||
const Material & | material, | ||
const LayerRoughness * | roughness = nullptr |
||
) |
Adds n times the same slice to the stack.
Definition at line 46 of file SliceStack.cpp.
References addSlice(), and ASSERT.
void SliceStack::addSlice | ( | double | thickness, |
const Material & | material, | ||
const LayerRoughness * | roughness = nullptr |
||
) |
Definition at line 30 of file SliceStack.cpp.
References ASSERT, and ZLimits::inf.
Referenced by addNSlices().
void SliceStack::addTopSlice | ( | double | zbottom, |
const Material & | material | ||
) |
Definition at line 25 of file SliceStack.cpp.
References ZLimits::inf.
const LayerRoughness * SliceStack::bottomRoughness | ( | size_t | i_slice | ) | const |
Definition at line 75 of file SliceStack.cpp.
Referenced by RoughMultiLayerContribution::get_sum8terms(), Compute::SpecularScalar::topLayerR(), and Compute::SpecularMagnetic::topLayerR().
bool SliceStack::containsMagneticMaterial | ( | ) | const |
Definition at line 68 of file SliceStack.cpp.
References Slice::material().
|
inline |
Definition at line 57 of file SliceStack.h.
References m_roughness_model.
Referenced by Compute::SpecularScalar::fluxes(), Compute::SpecularMagnetic::fluxes(), Compute::SpecularScalar::topLayerR(), and Compute::SpecularMagnetic::topLayerR().
SliceStack SliceStack::setBField | ( | const R3 & | externalField | ) |
Definition at line 57 of file SliceStack.cpp.
References Slice::initBField().
Referenced by reSample::make().
|
inherited |
STL member.
|
private |
Definition at line 60 of file SliceStack.h.
Referenced by roughnessModel().