15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_BIPYRAMID4_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_BIPYRAMID4_H
32 std::string
className() const final {
return "Bipyramid4"; }
34 std::vector<ParaMeta>
parDefs() const final
36 return {{
"Length",
"nm",
"edge length of base square (common face of both pyramids)", 0,
38 {
"Height",
"nm",
"height of the lower pyramid", 0, +
INF, 0},
39 {
"HeightRatio",
"",
"height ratio of upper to lower pyramid", 0, +
INF, 0},
40 {
"Alpha",
"rad",
"angle between the base and a side face", 0.,
M_PI_2, 0}};
A truncated bifrustum with quadratic base.
double heightRatio() const
Bipyramid4(double length, double height, double height_ratio, double alpha)
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.
static const ff::PolyhedralTopology topology
const double & m_height_ratio
Bipyramid4 * 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.