Go to the documentation of this file.
37 #ifndef momentOfInertia_H
38 #define momentOfInertia_H
41 #include "triSurface.H"
105 bool doReduce =
false
Templated 3D tensor derived from VectorSpace adding construction from 9 components,...
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)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related 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)