44 complex_t qR = sqrt(
R *
R * (q.x() * q.x() + q.y() * q.y()) + h * h * q.z() * q.z());
46 complex_t zFactor = exp_I(h * q.z());
48 if (std::abs(qR) < 1e-4)
50 return 4 *
M_PI / 3 *
R *
R * h * (1. - 0.1 * pow(qR, 2)) * zFactor;
52 return 4 *
M_PI / pow(qR, 3) *
R *
R * h * (sin(qR) - qR * cos(qR)) * zFactor;
Defines M_PI and some more mathematical constants.
Defines class TruncatedEllipsoidNet.
Defines class TruncatedSpheroid.
void checkNodeArgs() const
Raises exception if a parameter value is invalid.
A full spheroid (an ellipsoid with two equal axes, hence with circular cross section)
Spheroid(double radius, double height)
complex_t formfactor_at_bottom(C3 q) const override