37 #ifndef momentOfInertia_H 38 #define momentOfInertia_H
static void massPropertiesSolid(const pointField &pts, const triFaceList &triFaces, scalar density, scalar &mass, vector &cM, tensor &J)
static void massPropertiesShell(const pointField &pts, const triFaceList &triFaces, scalar density, scalar &mass, vector &cM, tensor &J)
static tmp< tensorField > meshInertia(const polyMesh &mesh)
static tensor applyParallelAxisTheorem(scalar mass, const vector &cM, const tensor &J, const vector &refPt)
Mesh consisting of general polyhedral cells.
Calculates the inertia tensor and principal axes and moments of a polyhedra/cells/triSurfaces. Inertia can either be of the solid body or of a thin shell.
A class for managing temporary objects.
Triangulated surface description with patch information.