Public Member Functions | |
rigidBodyInertia () | |
Null constructor, initializes to zero. More... | |
rigidBodyInertia (const scalar m, const vector &c, const symmTensor &Ic) | |
Construct from mass, centre of mass and moment of inertia tensor. More... | |
rigidBodyInertia (const dictionary &dict) | |
Construct from dictionary. More... | |
rigidBodyInertia (const spatialTensor &st) | |
Construct from the components of a spatial tensor. More... | |
rigidBodyInertia (Istream &is) | |
Construct from Istream. More... | |
scalar | m () const |
Return the mass of the rigid-body. More... | |
const vector & | c () const |
Return the centre of mass of the rigid-body. More... | |
const symmTensor & | Ic () const |
Return the inertia tensor of the rigid-body about the centre of mass. More... | |
symmTensor | Ioc () const |
Return the difference between the inertia tensor of the rigid-body. More... | |
symmTensor | Icc (const vector &c) const |
Return the difference between the inertia tensor of the rigid-body. More... | |
symmTensor | Io () const |
Return the inertia tensor of the rigid-body about the origin. More... | |
scalar | kineticEnergy (const spatialVector &v) |
Return the kinetic energy of the body with the given velocity. More... | |
operator spatialTensor () const | |
Conversion to spatial tensor. More... | |
void | operator+= (const rigidBodyInertia &) |
Static Public Member Functions | |
static symmTensor | Ioc (const scalar m, const vector &c) |
Return the difference between the inertia tensor of the rigid-body. More... | |
Friends | |
Istream & | operator>> (Istream &, rigidBodyInertia &) |
Ostream & | operator<< (Ostream &, const rigidBodyInertia &) |
Definition at line 77 of file rigidBodyInertia.H.
|
inline |
Null constructor, initializes to zero.
Definition at line 47 of file rigidBodyInertiaI.H.
|
inline |
Construct from mass, centre of mass and moment of inertia tensor.
about the centre of mass
Definition at line 55 of file rigidBodyInertiaI.H.
|
inline |
Construct from dictionary.
Definition at line 68 of file rigidBodyInertiaI.H.
|
inlineexplicit |
Construct from the components of a spatial tensor.
Definition at line 76 of file rigidBodyInertiaI.H.
|
inlineexplicit |
Construct from Istream.
Definition at line 84 of file rigidBodyInertiaI.H.
|
inlinestatic |
Return the difference between the inertia tensor of the rigid-body.
about the origin - about the centre of mass for the given mass and centre of mass
Definition at line 35 of file rigidBodyInertiaI.H.
References rigidBodyInertia::c(), Foam::I, rigidBodyInertia::m(), Foam::magSqr(), and Foam::sqr().
|
inline |
Return the mass of the rigid-body.
Definition at line 94 of file rigidBodyInertiaI.H.
Referenced by cuboid::cuboid(), rigidBodyInertia::Ioc(), Foam::RBD::operator+(), sphere::sphere(), and Foam::RBD::transform().
|
inline |
Return the centre of mass of the rigid-body.
Definition at line 99 of file rigidBodyInertiaI.H.
Referenced by cuboid::cuboid(), rigidBodyInertia::Ioc(), sphere::sphere(), and Foam::RBD::transform().
|
inline |
Return the inertia tensor of the rigid-body about the centre of mass.
Definition at line 104 of file rigidBodyInertiaI.H.
Referenced by Foam::RBD::transform().
|
inline |
Return the difference between the inertia tensor of the rigid-body.
about the origin - about the centre of mass
Definition at line 109 of file rigidBodyInertiaI.H.
|
inline |
Return the difference between the inertia tensor of the rigid-body.
about the a new centre of mass - about the current centre of mass
Definition at line 114 of file rigidBodyInertiaI.H.
|
inline |
Return the inertia tensor of the rigid-body about the origin.
Definition at line 119 of file rigidBodyInertiaI.H.
|
inline |
Return the kinetic energy of the body with the given velocity.
Definition at line 235 of file rigidBodyInertiaI.H.
|
inline |
Conversion to spatial tensor.
Definition at line 127 of file rigidBodyInertiaI.H.
References Foam::I.
|
inline |
Definition at line 246 of file rigidBodyInertiaI.H.
|
friend |
|
friend |