15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_TRUNCATEDSPHERE_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_TRUNCATEDSPHERE_H
33 std::string
className() const final {
return "TruncatedSphere"; }
35 std::vector<ParaMeta>
parDefs() const final
37 return {{
"Radius",
"nm",
"radius", 0, +
INF, 0},
38 {
"Height",
"nm",
"height before removal of cap", 0, +
INF, 0},
39 {
"DeltaHeight",
"nm",
"height of removed cap", 0, +
INF, 0}};
double removedTop() const
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.
double radialExtension() const override
Returns the (approximate in some cases) radial size of the particle of this form factor's shape....
TruncatedSphere * clone() const override
Returns a clone of this ISampleNode object.
complex_t formfactor_at_bottom(C3 q) const override
Complex form factor.
TruncatedSphere(double radius, double height, double dh)