Calculates the inertia tensor and principal axes and moments of a test face, tetrahedron and cell. More...
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
Calculates the inertia tensor and principal axes and moments of a test face, tetrahedron and cell.
Original source file Test-momentOfInertia.C
Definition in file Test-momentOfInertia.C.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 45 of file Test-momentOfInertia.C.
References argList::addOption(), args, primitiveMesh::cellCentres(), primitiveMesh::cells(), Foam::cmptMax(), VectorSpace::component(), Foam::eigenValues(), Foam::eigenVectors(), Foam::endl(), f(), primitiveMesh::faceCentres(), Foam::findMin(), forAll, Foam::identity(), Foam::Info, Foam::mag(), momentOfInertia::massPropertiesSolid(), mesh, momentOfInertia::meshInertia(), OFstream::name(), Foam::name(), Foam::nl, argList::optionLookupOrDefault(), triFace(), Foam::meshTools::writeOBJ(), Vector< Cmpt >::x(), Tensor::x(), Vector< Cmpt >::y(), Tensor::y(), Vector< Cmpt >::z(), Tensor::z(), Tensor::zero, and Vector< scalar >::zero.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.