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. More...
Static Public Member Functions | |
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, bool doReduce=false) |
static void | massPropertiesSolid (const triSurface &surf, scalar density, scalar &mass, vector &cM, tensor &J) |
static void | massPropertiesShell (const triSurface &surf, scalar density, scalar &mass, vector &cM, tensor &J, bool doReduce=false) |
static void | massPropertiesPatch (const polyPatch &pp, 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 tensor | meshInertia (const polyMesh &mesh, label cellI) |
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.
Definition at line 52 of file momentOfInertia.H.
|
static |
Definition at line 32 of file momentOfInertia.C.
References forAll, Foam::I, n, Vector< Cmpt >::x(), Tensor::xx(), Tensor::xy(), Tensor::xz(), Vector< Cmpt >::y(), Tensor::yx(), Tensor::yy(), Tensor::yz(), Vector< Cmpt >::z(), Tensor::zx(), Tensor::zy(), and Tensor::zz().
Referenced by main().
|
static |
Definition at line 189 of file momentOfInertia.C.
References triangle::centre(), forAll, triangle::mag(), and Foam::reduce().
|
static |
Definition at line 257 of file momentOfInertia.C.
References forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::points(), List::size(), and triFace().
|
static |
Definition at line 277 of file momentOfInertia.C.
References forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::points(), List::size(), and triFace().
|
static |
Definition at line 298 of file momentOfInertia.C.
References DynamicList::append(), f(), forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::points(), List::transfer(), and triFace().
|
static |
Definition at line 332 of file momentOfInertia.C.
References Foam::I.
|
static |
|
static |
Definition at line 368 of file momentOfInertia.C.
References forAll, mesh, and List::size().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.