Ellipsoid.hh
std::optional< MassMatrix3< Precision > > MassMatrix() const
Get the mass matrix for this ellipsoid. This function is only meaningful if the ellipsoid's radii and...
Definition: AdditivelySeparableScalarField3.hh:27
bool operator==(const Ellipsoid &_ellipsoid) const
Check if this ellipsoid is equal to the provided ellipsoid. Radius, length, and material properties w...
const Material & Mat() const
Get the material associated with this ellipsoid.
bool SetDensityFromMass(const Precision _mass)
Set the density of this ellipsoid based on a mass value. Density is computed using Precision DensityF...
Ellipsoid< double > Ellipsoidd
Ellipsoid with double precision.
Definition: Ellipsoid.hh:124
void SetMat(const Material &_mat)
Set the material associated with this ellipsoid.
Ellipsoid< int > Ellipsoidi
Ellipsoid with integer precision.
Definition: Ellipsoid.hh:120
Ellipsoid()=default
Default constructor. The default radius and length are both zero.
Precision DensityFromMass(const Precision _mass) const
Compute the ellipsoid's density given a mass value. The ellipsoid is assumed to be solid with uniform...
void SetRadii(const Vector3< Precision > &_radii)
Set the radius in meters.
Ellipsoid< float > Ellipsoidf
Ellipsoid with float precision.
Definition: Ellipsoid.hh:128