21 {{0, 1, 5, 4},
false},
22 {{1, 2, 6, 5},
false},
23 {{2, 3, 7, 6},
false},
24 {{3, 0, 4, 7},
false},
25 {{4, 5, 6, 7},
true}},
31 "frsutum with rectangular base",
32 {{
"Length",
"nm",
"side length of base in x direction", 0, +
INF, 0},
33 {
"Width",
"nm",
"side length of base in y direction", 0, +
INF, 0},
34 {
"Height",
"nm",
"height", 0, +
INF, 0},
35 {
"Alpha",
"rad",
"angle between base and any side face", 0.,
M_PI_2, 0}}},
37 m_length(m_P[0]), m_width(m_P[1]), m_height(m_P[2]), m_alpha(m_P[3])
61 if (!std::isfinite(cot_alpha) || cot_alpha < 0)
66 std::ostringstream ostr;
67 ostr <<
"FormFactorAnisoPyramid() -> Error in class initialization with parameters";
71 ostr <<
" alpha[rad]:" <<
m_alpha <<
"\n\n";
72 ostr <<
"Check for '2*height <= (length,width)*tan(alpha)' failed.";
79 double w =
m_width / 2 * (1 - s);
82 m_height * (.5 - (r + s) / 3 + r * s / 4) / (1 - (r + s) / 2 + r * s / 3);
Defines many exception classes in namespace Exceptionss.
Defines M_PI and some more mathematical constants.
Defines namespace MathFunctions.
Pure virtual interface for rotations.
For internal use in IFormFactorPolyhedron.
Class that contains upper and lower limits of the z-coordinate for the slicing of form factors.
double cot(double x)
cotangent function: