15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_SPHEROID_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_SPHEROID_H
30 std::string
className() const final {
return "Spheroid"; }
32 std::vector<ParaMeta>
parDefs() const final
35 {
"Radius",
"nm",
"revolution radius", 0, +
INF, 0},
36 {
"Height",
"nm",
"height = twice the radius in non-revolution direction", 0, +
INF, 0}};
A full spheroid (an ellipsoid with two equal axes, hence with circular cross section)
Spheroid(double radius, double height)
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.
Spheroid * clone() const override
Returns a clone of this ISampleNode object.
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
complex_t formfactor_at_bottom(C3 q) const override
double radialExtension() const override
Returns the (approximate in some cases) radial size of the particle of this form factor's shape....