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