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...
static void massPropertiesSolid(const pointField &pts, const triFaceList &triFaces, scalar density, scalar &mass, vector &cM, tensor &J)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
static tmp< tensorField > meshInertia(const polyMesh &mesh)
static tensor applyParallelAxisTheorem(scalar mass, const vector &cM, const tensor &J, const vector &refPt)
static void massPropertiesPatch(const polyPatch &pp, scalar density, scalar &mass, vector &cM, tensor &J, bool doReduce=false)
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.
A patch is a list of labels that address the faces in the global face list.
Triangulated surface description with patch information.
Tensor of scalars, i.e. Tensor<scalar>.
static void massPropertiesShell(const pointField &pts, const triFaceList &triFaces, scalar density, scalar &mass, vector &cM, tensor &J, bool doReduce=false)
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())