#include <rigidBody.H>


Public Member Functions | |
| TypeName ("rigidBody") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, rigidBody, dictionary,(const word &name, const dictionary &dict),(name, dict)) | |
| rigidBody (const word &name, const scalar &m, const vector &c, const symmTensor &Ic) | |
| Construct from mass, centre of mass and moment of inertia tensor. | |
| rigidBody (const word &name, const rigidBodyInertia &rbi) | |
| Construct from with the given rigidBodyInertia. | |
| rigidBody (const word &name, const dictionary &dict) | |
| Construct from dictionary. | |
| virtual autoPtr< rigidBody > | clone () const |
| Return clone of this rigidBody. | |
| virtual | ~rigidBody () |
| Destructor. | |
| const word & | name () const |
| Return name. | |
| virtual bool | massless () const |
| Return false as this body is not massless. | |
| void | merge (const subBody &) |
| Merge a body into this parent body. | |
| virtual void | write (Ostream &) const |
| Write. | |
| Public Member Functions inherited from rigidBodyInertia | |
| rigidBodyInertia () | |
| Null constructor, initializes to zero. | |
| rigidBodyInertia (const scalar m, const vector &c, const symmTensor &Ic) | |
| Construct from mass, centre of mass and moment of inertia tensor. | |
| rigidBodyInertia (const dictionary &dict) | |
| Construct from dictionary. | |
| rigidBodyInertia (const spatialTensor &st) | |
| Construct from the components of a spatial tensor. | |
| rigidBodyInertia (Istream &is) | |
| Construct from Istream. | |
| scalar | m () const |
| Return the mass of the rigid-body. | |
| const vector & | c () const |
| Return the centre of mass of the rigid-body. | |
| const symmTensor & | Ic () const |
| Return the inertia tensor of the rigid-body about the centre of mass. | |
| symmTensor | Ioc () const |
| Return the difference between the inertia tensor of the rigid-body. | |
| symmTensor | Icc (const vector &c) const |
| Return the difference between the inertia tensor of the rigid-body. | |
| symmTensor | Io () const |
| Return the inertia tensor of the rigid-body about the origin. | |
| scalar | kineticEnergy (const spatialVector &v) |
| Return the kinetic energy of the body with the given velocity. | |
| operator spatialTensor () const | |
| Conversion to spatial tensor. | |
| void | operator+= (const rigidBodyInertia &) |
Static Public Member Functions | |
| static autoPtr< rigidBody > | New (const word &name, const scalar &m, const vector &c, const symmTensor &Ic) |
| Select constructed from components. | |
| static autoPtr< rigidBody > | New (const word &name, const dictionary &dict) |
| Select constructed from name and dictionary. | |
| Static Public Member Functions inherited from rigidBodyInertia | |
| static symmTensor | Ioc (const scalar m, const vector &c) |
| Return the difference between the inertia tensor of the rigid-body. | |
Friends | |
| Ostream & | operator<< (Ostream &, const rigidBody &) |
|
inline |
Construct from mass, centre of mass and moment of inertia tensor.
about the centre of mass
Definition at line 23 of file rigidBodyI.H.
References rigidBodyInertia::c(), rigidBodyInertia::Ic(), rigidBodyInertia::m(), name(), and rigidBodyInertia::rigidBodyInertia().
Referenced by compositeBody::compositeBody(), cuboid::cuboid(), cuboid::cuboid(), declareRunTimeSelectionTable(), masslessBody::masslessBody(), masslessBody::masslessBody(), masslessBody::masslessBody(), merge(), operator<<, sphere::sphere(), and sphere::sphere().


|
inline |
Construct from with the given rigidBodyInertia.
Definition at line 36 of file rigidBodyI.H.
References name(), and rigidBodyInertia::rigidBodyInertia().

|
inline |
Construct from dictionary.
Definition at line 47 of file rigidBodyI.H.
References dict, name(), and rigidBodyInertia::rigidBodyInertia().

|
virtual |
Destructor.
Definition at line 94 of file rigidBody.C.
| TypeName | ( | "rigidBody" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| rigidBody | , | ||
| dictionary | , | ||
| (const word &name, const dictionary &dict) | , | ||
| (name, dict) | ) |
References rigidBodyInertia::c(), dict, rigidBodyInertia::Ic(), rigidBodyInertia::m(), name(), rigidBody(), and rigidBodyInertia::rigidBodyInertia().

|
virtual |
Return clone of this rigidBody.
Reimplemented in compositeBody, cuboid, jointBody, masslessBody, and sphere.
Definition at line 47 of file rigidBody.C.
References autoPtr< T >::New().

|
static |
Select constructed from components.
Definition at line 55 of file rigidBody.C.
References rigidBodyInertia::c(), rigidBodyInertia::Ic(), rigidBodyInertia::m(), name(), and autoPtr< T >::New().
Referenced by rigidBodyModel::rigidBodyModel().


|
static |
Select constructed from name and dictionary.
Definition at line 67 of file rigidBody.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, and name().

|
inline |
Return name.
Definition at line 60 of file rigidBodyI.H.
Referenced by cuboid::cuboid(), cuboid::cuboid(), declareRunTimeSelectionTable(), rigidBodyModel::join_(), jointBody::jointBody(), jointBody::jointBody(), masslessBody::masslessBody(), masslessBody::masslessBody(), New(), New(), rigidBody(), rigidBody(), rigidBody(), sphere::sphere(), sphere::sphere(), cuboid::TypeName(), jointBody::TypeName(), masslessBody::TypeName(), and sphere::TypeName().

|
virtual |
Return false as this body is not massless.
Reimplemented in masslessBody.
Definition at line 100 of file rigidBody.C.
| void merge | ( | const subBody & | subBody | ) |
Merge a body into this parent body.
Definition at line 106 of file rigidBody.C.
References subBody::body(), subBody::masterXT(), name, rigidBody(), and Foam::RBD::transform().

|
virtual |
Write.
Reimplemented in compositeBody, cuboid, masslessBody, and sphere.
Definition at line 116 of file rigidBody.C.
References rigidBodyInertia::c(), rigidBodyInertia::Ic(), rigidBodyInertia::m(), os(), and Foam::type().
Referenced by Foam::RBD::operator<<().


References rigidBody().