#include <cuboid.H>


Public Member Functions | |
| TypeName ("cuboid") | |
| Runtime type information. | |
| cuboid (const word &name, const scalar m, const vector &c, const vector &L) | |
| Construct from name, mass, centre of mass and lengths of the sides. | |
| cuboid (const word &name, const dictionary &dict) | |
| Construct from dictionary. | |
| virtual autoPtr< rigidBody > | clone () const |
| Return clone of this cuboid. | |
| virtual | ~cuboid () |
| Destructor. | |
| const vector & | L () const |
| Return the lengths of the sides of the cuboid. | |
| virtual void | write (Ostream &) const |
| Write. | |
| Public Member Functions inherited from rigidBody | |
| 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 | ~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. | |
| 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 &) |
Additional Inherited Members | |
| Static Public Member Functions inherited from rigidBody | |
| 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. | |
Construct from name, mass, centre of mass and lengths of the sides.
Definition at line 45 of file cuboidI.H.
References rigidBodyInertia::c(), L(), rigidBodyInertia::m(), rigidBody::name(), and rigidBody::rigidBody().
Referenced by clone().


|
inline |
Construct from dictionary.
Definition at line 58 of file cuboidI.H.
References rigidBodyInertia::c(), dict, Foam::I, rigidBodyInertia::m(), rigidBody::name(), rigidBody::rigidBody(), and rigidBodyInertia::rigidBodyInertia().

| TypeName | ( | "cuboid" | ) |
Runtime type information.
References rigidBodyInertia::c(), dict, L(), rigidBodyInertia::m(), and rigidBody::name().

|
virtual |
|
inline |
Return the lengths of the sides of the cuboid.
Definition at line 75 of file cuboidI.H.
Referenced by cuboid(), and TypeName().

|
virtual |
Write.
Reimplemented from rigidBody.
Definition at line 58 of file cuboid.C.
References L, rigidBodyInertia::m(), os(), and Foam::type().
