Skip to main content

surfaceInertia

Overview

The surfaceInertia utility determines the following properties of a user-supplied surface file:

  • inertia tensor for the thin shell or solid body enclosed by the surface;
  • principal axes; and
  • moments.

Usage

Synopsis

surfaceInertia [OPTIONS] <input>

Examples

surfaceInertia -referencePoint '(0 0 1)' surface.stl

Input

Arguments

<input> The input surface file

Options

-case <dir> Case directory (instead of current directory)
-density <scalar>
Specify density, kg/m3 for solid properties, kg/m2 for
shell properties
-referencePoint <vector>
Inertia relative to this point, not the centre of mass
-shellProperties Inertia of a thin shell
-doc Display documentation in browser
-help Display short help and exit
-help-full Display full help and exit

Files

No file input required.

Fields

No field input required.

Output

Logs

PropertyType
Mass of the surfacescalar
Centre of mass of the surfacevector
Surface areascalar
Inertia tensor around centre of masstensor
Eigen values - principal momentsvector
Eigen vectors - principal axesvectors
Transform tensor from reference state (orientation)tensor

Files

PropertyDescriptionPathType
axes.objWrites scaled principal axes at centre of mass of the surface<case>/obj

Fields

No field output.

Method

The inertia of the surface or the volume is evaluated as follows.

Shell

The first step is to compute the centre of mass, cmc_m:

cm=i=1nSt,ict,ii=1nSt,i,c_m = \frac{\sum_{i=1}^{n} | S_{t,i} | c_{t,i}}{\sum_{i=1}^{n} | S_{t,i} |},

where StS_t is the triangle area and nn the number of triangles in the surface.

The tensorial inertia, JJ, around the centre of mass determined using:

J=i=1nJt,i,J = \sum_{i=1}^{n} J_{t,i},

where JtJ_t is the inertia of a triangle.

Solid

The calculation follows the procedure from the Geometric Tools library. Further details can be found in 15.

Further information

Tutorial:

  • None

Source code:

History: Introduced in version 1.7.0