21 {{0, 1, 5, 4},
false},
22 {{1, 2, 6, 5},
false},
23 {{2, 3, 7, 6},
false},
24 {{3, 0, 4, 7},
false},
31 "frustum with quadratic base",
32 {{
"BaseEdge",
"nm",
"base edge length", 0, +
INF, 0},
33 {
"Height",
"nm",
"height", 0, +
INF, 0},
34 {
"Alpha",
"rad",
"angle between base and a side face", 0.,
M_PI, 0}}},
61 if (!std::isfinite(cot_alpha))
62 throw std::runtime_error(
"pyramid angle alpha out of bounds");
65 std::ostringstream ostr;
66 ostr <<
"FormFactorPyramid() -> Error in class initialization with parameters";
69 ostr <<
" alpha[rad]:" <<
m_alpha <<
"\n\n";
70 ostr <<
"Check for 'height <= base_edge*tan(alpha)' failed.";
71 throw std::runtime_error(ostr.str());
75 double b = a * (1 - r);
77 double zcom =
m_height * (.5 - 2 * r / 3 + r * r / 4) / (1 - r + r * r / 3);
Defines M_PI and some more mathematical constants.
Defines functions in namespace Math.
static SlicingEffects computeSlicingEffects(ZLimits limits, const kvector_t &position, double height)
Helper method for slicing.
Abstract base class 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: