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, symmTensor &J) |
| static void | massPropertiesShell (const pointField &pts, const triFaceList &triFaces, scalar density, scalar &mass, vector &cM, symmTensor &J) |
| static void | massPropertiesSolid (const triSurface &surf, scalar density, scalar &mass, vector &cM, symmTensor &J) |
| static void | massPropertiesShell (const triSurface &surf, scalar density, scalar &mass, vector &cM, symmTensor &J) |
| static tensor | applyParallelAxisTheorem (scalar mass, const vector &cM, const symmTensor &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 31 of file momentOfInertia.C.
References forAll, Foam::I, n, Foam::sqr(), Vector< Cmpt >::x(), SymmTensor< Cmpt >::xx(), SymmTensor< Cmpt >::xy(), SymmTensor< Cmpt >::xz(), Vector< Cmpt >::y(), SymmTensor< Cmpt >::yy(), SymmTensor< Cmpt >::yz(), Vector< Cmpt >::z(), and SymmTensor< Cmpt >::zz().

|
static |
Definition at line 185 of file momentOfInertia.C.
References triangle< Point, PointRef >::centre(), forAll, triangle< Point, PointRef >::mag(), and Foam::Zero.

|
static |
Definition at line 241 of file momentOfInertia.C.
References forAll, PrimitivePatch< FaceList, PointField >::points(), List< T >::size(), and triFace().

|
static |
Definition at line 261 of file momentOfInertia.C.
References forAll, PrimitivePatch< FaceList, PointField >::points(), List< T >::size(), and triFace().

|
static |
Definition at line 281 of file momentOfInertia.C.
References Foam::I, Foam::magSqr(), and Foam::sqr().

|
static |
Definition at line 299 of file momentOfInertia.C.
References forAll, mesh, primitiveMesh::nCells(), tmp< T >::ref(), and tf.

|
static |
Definition at line 317 of file momentOfInertia.C.
References polyMeshTetDecomposition::cellTetIndices(), forAll, mesh, polyMesh::points(), List< T >::size(), and Foam::Zero.
