50#ifndef momentOfInertia_H
51#define momentOfInertia_H
108 bool doReduce =
false
118 bool doReduce =
false
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Calculates the inertia tensor and principal axes and moments of a polyhedra/cells/triSurfaces....
static void massPropertiesShell(const pointField &pts, const triFaceList &triFaces, scalar density, scalar &mass, vector &cM, tensor &J, bool doReduce=false)
static tensor applyParallelAxisTheorem(scalar mass, const vector &cM, const tensor &J, const vector &refPt)
static tmp< tensorField > meshInertia(const polyMesh &mesh)
static void massPropertiesPatch(const polyPatch &pp, scalar density, scalar &mass, vector &cM, tensor &J, bool doReduce=false)
static void massPropertiesSolid(const pointField &pts, const triFaceList &triFaces, scalar density, scalar &mass, vector &cM, tensor &J)
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
A class for managing temporary objects.
Triangulated surface description with patch information.