BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
The form factor for a cosine ripple, with Lorentz form factor in elongation direction.
Definition at line 66 of file CosineRipple.h.
Public Member Functions | |
CosineRippleLorentz (double length, double width, double height) | |
CosineRippleLorentz (std::vector< double > P) | |
virtual double | bottomZ (const IRotation *rotation) const |
virtual bool | canSliceAnalytically (const IRotation *rot) const |
Default implementation only allows rotations along z-axis. More... | |
void | checkNodeArgs () const |
Raises exception if a parameter value is invalid. More... | |
std::string | className () const final |
Returns the class name, to be hard-coded in each leaf class that inherits from INode. More... | |
CosineRippleLorentz * | clone () const override |
Returns a clone of this ISampleNode object. More... | |
std::vector< const Material * > | containedMaterials () const |
Returns set of unique materials contained in this ISampleNode. More... | |
complex_t | formfactor_at_bottom (C3 q) const override |
virtual SpinMatrix | formfactor_pol (C3 q) const |
Returns scattering amplitude for complex scattering wavevector q=k_i-k_f in case of matrix interactions. Default implementation calls formfactor_at_bottom(q) and multiplies with the unit matrix. More... | |
double | height () const |
bool | isMagnetic () const |
Returns true if there is any magnetic material in this ISampleNode. More... | |
double | length () const |
virtual const Material * | material () const |
Returns nullptr, unless overwritten to return a specific material. More... | |
virtual std::vector< const INode * > | nodeChildren () const |
Returns all children. More... | |
std::vector< const INode * > | nodeOffspring () const |
Returns all descendants. More... | |
std::vector< ParaMeta > | parDefs () const final |
Returns the parameter definitions, to be hard-coded in each leaf class. More... | |
virtual std::string | pythonConstructor () const |
Creates the Python constructor of this class (or derived classes) More... | |
double | radialExtension () const override |
Returns the (approximate in some cases) radial size of the particle of this form factor's shape. This is used for SSCA calculations. More... | |
std::string | shapeName () const |
virtual complex_t | theFF (const WavevectorInfo &wavevectors) const |
virtual SpinMatrix | thePolFF (const WavevectorInfo &wavevectors) const |
virtual double | topZ (const IRotation *rotation) const |
virtual void | transferToCPP () |
Used for Python overriding of clone (see swig/tweaks.py) More... | |
virtual double | volume () const |
double | width () const |
Protected Attributes | |
const double & | m_height |
const double & | m_length |
std::vector< double > | m_P |
std::unique_ptr< IShape3D > | m_shape3D |
IShape3D object, used to retrieve vertices (which may be approximate in the case of round shapes). For soft particles, this will be a hard mean shape. More... | |
const double & | m_width |
Private Member Functions | |
complex_t | factor_x (complex_t qx) const override |
complex_t | factor_yz (complex_t qy, complex_t qz) const override |
Complex form factor. More... | |
CosineRippleLorentz::CosineRippleLorentz | ( | double | length, |
double | width, | ||
double | height | ||
) |
Definition at line 78 of file CosineRipple.cpp.
References IProfileRipple::height(), IProfileRipple::length(), and IProfileRipple::width().
Referenced by clone().
CosineRippleLorentz::CosineRippleLorentz | ( | std::vector< double > | P | ) |
Definition at line 72 of file CosineRipple.cpp.
References INode::checkNodeArgs().
|
virtualinherited |
Reimplemented in Sphere, IFormFactorPrism, and IFormFactorPolyhedron.
Definition at line 50 of file IFormFactor.cpp.
References PolyhedralUtil::BottomZ(), and IFormFactor::m_shape3D.
|
virtualinherited |
Default implementation only allows rotations along z-axis.
Reimplemented in Sphere.
Definition at line 64 of file IFormFactor.cpp.
References IRotation::zInvariant().
|
inherited |
Raises exception if a parameter value is invalid.
Definition at line 27 of file INode.cpp.
References ASSERT, RealLimits::check(), INode::className(), INF, RealLimits::limited(), RealLimits::limitless(), INode::m_P, ParaMeta::name, RealLimits::nonnegative(), INode::parDefs(), ParaMeta::vMax, and ParaMeta::vMin.
Referenced by BarGauss::BarGauss(), BarLorentz::BarLorentz(), Bipyramid4::Bipyramid4(), Box::Box(), CantellatedCube::CantellatedCube(), Cone::Cone(), ConstantBackground::ConstantBackground(), CosineRippleBox::CosineRippleBox(), CosineRippleGauss::CosineRippleGauss(), CosineRippleLorentz(), Cylinder::Cylinder(), DistributionCosine::DistributionCosine(), DistributionGate::DistributionGate(), DistributionGaussian::DistributionGaussian(), DistributionLogNormal::DistributionLogNormal(), DistributionLorentz::DistributionLorentz(), DistributionTrapezoid::DistributionTrapezoid(), Dodecahedron::Dodecahedron(), EllipsoidalCylinder::EllipsoidalCylinder(), FootprintGauss::FootprintGauss(), FootprintSquare::FootprintSquare(), FuzzySphere::FuzzySphere(), GaussSphere::GaussSphere(), HemiEllipsoid::HemiEllipsoid(), HollowSphere::HollowSphere(), HorizontalCylinder::HorizontalCylinder(), Icosahedron::Icosahedron(), LongBoxGauss::LongBoxGauss(), LongBoxLorentz::LongBoxLorentz(), PlatonicOctahedron::PlatonicOctahedron(), PlatonicTetrahedron::PlatonicTetrahedron(), Prism3::Prism3(), Prism6::Prism6(), Profile1DCauchy::Profile1DCauchy(), Profile1DCosine::Profile1DCosine(), Profile1DGate::Profile1DGate(), Profile1DGauss::Profile1DGauss(), Profile1DTriangle::Profile1DTriangle(), Profile1DVoigt::Profile1DVoigt(), Profile2DCauchy::Profile2DCauchy(), Profile2DCone::Profile2DCone(), Profile2DGate::Profile2DGate(), Profile2DGauss::Profile2DGauss(), Profile2DVoigt::Profile2DVoigt(), Pyramid2::Pyramid2(), Pyramid3::Pyramid3(), Pyramid4::Pyramid4(), Pyramid6::Pyramid6(), RotationEuler::RotationEuler(), RotationX::RotationX(), RotationY::RotationY(), RotationZ::RotationZ(), SawtoothRippleBox::SawtoothRippleBox(), SawtoothRippleGauss::SawtoothRippleGauss(), SawtoothRippleLorentz::SawtoothRippleLorentz(), Sphere::Sphere(), Spheroid::Spheroid(), TruncatedCube::TruncatedCube(), TruncatedSphere::TruncatedSphere(), and TruncatedSpheroid::TruncatedSpheroid().
|
inlinefinalvirtual |
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
Implements INode.
Definition at line 72 of file CosineRipple.h.
|
overridevirtual |
Returns a clone of this ISampleNode object.
Implements IFormFactor.
Definition at line 83 of file CosineRipple.cpp.
References CosineRippleLorentz(), IProfileRipple::m_height, IProfileRipple::m_length, and IProfileRipple::m_width.
|
inherited |
Returns set of unique materials contained in this ISampleNode.
Definition at line 25 of file ISampleNode.cpp.
References ISampleNode::material(), and INode::nodeChildren().
Referenced by SampleUtils::Multilayer::ContainsCompatibleMaterials(), SampleToPython::initLabels(), and ISampleNode::isMagnetic().
|
overrideprivatevirtual |
Implements IProfileRipple.
Definition at line 88 of file CosineRipple.cpp.
References ripples::factor_x_Lorentz(), and IProfileRipple::m_length.
|
overrideprivatevirtualinherited |
Complex form factor.
Implements IProfileRipple.
Definition at line 70 of file IProfileRipple.cpp.
References IProfileRipple::m_height, IProfileRipple::m_width, and ripples::profile_yz_cosine().
|
overridevirtualinherited |
Implements IFormFactor.
Definition at line 38 of file IProfileRipple.cpp.
References IProfileRipple::factor_x(), and IProfileRipple::factor_yz().
|
virtualinherited |
Returns scattering amplitude for complex scattering wavevector q=k_i-k_f in case of matrix interactions. Default implementation calls formfactor_at_bottom(q) and multiplies with the unit matrix.
Definition at line 78 of file IFormFactor.cpp.
References IFormFactor::formfactor_at_bottom(), and SpinMatrix::One().
Referenced by IFormFactor::thePolFF().
|
inlineinherited |
Definition at line 28 of file IProfileRipple.h.
References IProfileRipple::m_height.
Referenced by BarGauss::BarGauss(), BarLorentz::BarLorentz(), CosineRippleBox::CosineRippleBox(), CosineRippleGauss::CosineRippleGauss(), CosineRippleLorentz(), SawtoothRippleBox::SawtoothRippleBox(), SawtoothRippleGauss::SawtoothRippleGauss(), and SawtoothRippleLorentz::SawtoothRippleLorentz().
|
inherited |
Returns true if there is any magnetic material in this ISampleNode.
Definition at line 39 of file ISampleNode.cpp.
References ISampleNode::containedMaterials().
Referenced by reSample::make().
|
inlineinherited |
Definition at line 27 of file IProfileRipple.h.
References IProfileRipple::m_length.
Referenced by BarGauss::BarGauss(), BarLorentz::BarLorentz(), CosineRippleBox::CosineRippleBox(), CosineRippleGauss::CosineRippleGauss(), CosineRippleLorentz(), SawtoothRippleBox::SawtoothRippleBox(), SawtoothRippleGauss::SawtoothRippleGauss(), and SawtoothRippleLorentz::SawtoothRippleLorentz().
|
inlinevirtualinherited |
Returns nullptr, unless overwritten to return a specific material.
Reimplemented in Particle, and Layer.
Definition at line 36 of file ISampleNode.h.
Referenced by ISampleNode::containedMaterials().
|
virtualinherited |
Returns all children.
Reimplemented in ISimulation2D, ISimulation, ParticleCoreShell, ParticleComposition, Particle, MesoCrystal, IParticle, Crystal, MultiLayer, Layer, LayerInterface, ParticleLayout, InterferenceRadialParaCrystal, InterferenceFinite3DLattice, InterferenceFinite2DLattice, Interference3DLattice, Interference2DSuperLattice, Interference2DParaCrystal, Interference2DLattice, Interference1DLattice, ConvolutionDetectorResolution, IDetector, and Beam.
Definition at line 56 of file INode.cpp.
Referenced by NodeUtils::AllDescendantsOfType(), NodeUtils::ChildNodesOfType(), ISampleNode::containedMaterials(), and INode::nodeOffspring().
|
inherited |
Returns all descendants.
Definition at line 61 of file INode.cpp.
References INode::nodeChildren().
|
inlinefinalvirtual |
Returns the parameter definitions, to be hard-coded in each leaf class.
Reimplemented from INode.
Definition at line 74 of file CosineRipple.h.
References INF.
|
virtualinherited |
Creates the Python constructor of this class (or derived classes)
Definition at line 69 of file IFormFactor.cpp.
References INode::className(), INode::m_P, INode::parDefs(), and Py::Fmt::printFunction().
|
overridevirtualinherited |
Returns the (approximate in some cases) radial size of the particle of this form factor's shape. This is used for SSCA calculations.
Implements IFormFactor.
Definition at line 33 of file IProfileRipple.cpp.
References IProfileRipple::m_length, and IProfileRipple::m_width.
|
inherited |
Definition at line 33 of file IFormFactor.cpp.
References INode::className().
|
virtualinherited |
Definition at line 40 of file IFormFactor.cpp.
References IFormFactor::formfactor_at_bottom(), and WavevectorInfo::getQ().
|
virtualinherited |
Definition at line 45 of file IFormFactor.cpp.
References IFormFactor::formfactor_pol(), and WavevectorInfo::getQ().
|
virtualinherited |
Reimplemented in Sphere, IFormFactorPrism, and IFormFactorPolyhedron.
Definition at line 57 of file IFormFactor.cpp.
References IFormFactor::m_shape3D, and PolyhedralUtil::TopZ().
|
inlinevirtualinherited |
Used for Python overriding of clone (see swig/tweaks.py)
Definition at line 32 of file ICloneable.h.
|
virtualinherited |
Reimplemented in IFormFactorPrism, IFormFactorPolyhedron, and Box.
Definition at line 83 of file IFormFactor.cpp.
References IFormFactor::formfactor_at_bottom().
Referenced by Compute::Slicing::createParticleInSlice().
|
inlineinherited |
Definition at line 29 of file IProfileRipple.h.
References IProfileRipple::m_width.
Referenced by BarGauss::BarGauss(), BarLorentz::BarLorentz(), CosineRippleBox::CosineRippleBox(), CosineRippleGauss::CosineRippleGauss(), CosineRippleLorentz(), SawtoothRippleBox::SawtoothRippleBox(), SawtoothRippleGauss::SawtoothRippleGauss(), and SawtoothRippleLorentz::SawtoothRippleLorentz().
|
protectedinherited |
Definition at line 38 of file IProfileRipple.h.
Referenced by ICosineRipple::ICosineRipple(), IProfileRectangularRipple::IProfileRectangularRipple(), ISawtoothRipple::ISawtoothRipple(), BarGauss::clone(), BarLorentz::clone(), CosineRippleBox::clone(), CosineRippleGauss::clone(), clone(), SawtoothRippleBox::clone(), SawtoothRippleGauss::clone(), SawtoothRippleLorentz::clone(), IProfileRectangularRipple::factor_yz(), ICosineRipple::factor_yz(), ISawtoothRipple::factor_yz(), and IProfileRipple::height().
|
protectedinherited |
Definition at line 36 of file IProfileRipple.h.
Referenced by ICosineRipple::ICosineRipple(), IProfileRectangularRipple::IProfileRectangularRipple(), ISawtoothRipple::ISawtoothRipple(), BarGauss::clone(), BarLorentz::clone(), CosineRippleBox::clone(), CosineRippleGauss::clone(), clone(), SawtoothRippleBox::clone(), SawtoothRippleGauss::clone(), SawtoothRippleLorentz::clone(), BarGauss::factor_x(), BarLorentz::factor_x(), CosineRippleBox::factor_x(), CosineRippleGauss::factor_x(), factor_x(), SawtoothRippleBox::factor_x(), SawtoothRippleGauss::factor_x(), SawtoothRippleLorentz::factor_x(), IProfileRipple::length(), and IProfileRipple::radialExtension().
|
protectedinherited |
Definition at line 63 of file INode.h.
Referenced by IFootprintFactor::IFootprintFactor(), INode::checkNodeArgs(), IProfile1D::pythonConstructor(), IProfile2D::pythonConstructor(), IFormFactor::pythonConstructor(), Profile1DVoigt::pythonConstructor(), and Profile2DVoigt::pythonConstructor().
|
protectedinherited |
IShape3D object, used to retrieve vertices (which may be approximate in the case of round shapes). For soft particles, this will be a hard mean shape.
Definition at line 74 of file IFormFactor.h.
Referenced by Cone::Cone(), Cylinder::Cylinder(), EllipsoidalCylinder::EllipsoidalCylinder(), FuzzySphere::FuzzySphere(), HemiEllipsoid::HemiEllipsoid(), HollowSphere::HollowSphere(), HorizontalCylinder::HorizontalCylinder(), ICosineRipple::ICosineRipple(), IProfileRectangularRipple::IProfileRectangularRipple(), ISawtoothRipple::ISawtoothRipple(), LongBoxGauss::LongBoxGauss(), LongBoxLorentz::LongBoxLorentz(), Spheroid::Spheroid(), TruncatedSphere::TruncatedSphere(), TruncatedSpheroid::TruncatedSpheroid(), IFormFactor::bottomZ(), and IFormFactor::topZ().
|
protectedinherited |
Definition at line 37 of file IProfileRipple.h.
Referenced by ICosineRipple::ICosineRipple(), IProfileRectangularRipple::IProfileRectangularRipple(), ISawtoothRipple::ISawtoothRipple(), BarGauss::clone(), BarLorentz::clone(), CosineRippleBox::clone(), CosineRippleGauss::clone(), clone(), SawtoothRippleBox::clone(), SawtoothRippleGauss::clone(), SawtoothRippleLorentz::clone(), IProfileRectangularRipple::factor_yz(), ICosineRipple::factor_yz(), ISawtoothRipple::factor_yz(), IProfileRipple::radialExtension(), and IProfileRipple::width().