15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_CONE_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_CONE_H
27 Cone(std::vector<double> P);
30 std::string
className() const final {
return "Cone"; }
32 std::vector<ParaMeta>
parDefs() const final
34 return {{
"Radius",
"nm",
"radius of base", 0, +
INF, 0},
35 {
"Height",
"nm",
"height", 0, +
INF, 0},
36 {
"Alpha",
"rad",
"angle between base and side", 0.,
M_PI_2, 0}};
A conical frustum (cone truncated parallel to the base) with circular base.
complex_t formfactor_at_bottom(C3 q) const override
Cone(double radius, double height, double alpha)
double radialExtension() const override
Returns the (approximate in some cases) radial size of the particle of this form factor's shape....
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.
Cone * 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.