Public Member Functions | |
TypeName ("sphere") | |
Runtime type information. More... | |
sphere (const word &name, const scalar m, const vector &c, const scalar r) | |
Construct from name, mass, centre of mass and radius. More... | |
sphere (const word &name, const dictionary &dict) | |
Construct from dictionary. More... | |
virtual autoPtr< rigidBody > | clone () const |
Return clone of this sphere. More... | |
virtual | ~sphere () |
Destructor. More... | |
scalar | r () const |
Return the radius of the sphere. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
![]() | |
TypeName ("rigidBody") | |
Runtime type information. More... | |
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. More... | |
rigidBody (const word &name, const rigidBodyInertia &rbi) | |
Construct from with the given rigidBodyInertia. More... | |
rigidBody (const word &name, const dictionary &dict) | |
Construct from dictionary. More... | |
virtual | ~rigidBody () |
Destructor. More... | |
const word & | name () const |
Return name. More... | |
virtual bool | massless () const |
Return false as this body is not massless. More... | |
void | merge (const subBody &) |
Merge a body into this parent body. More... | |
![]() | |
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 &) |
Additional Inherited Members | |
![]() | |
static autoPtr< rigidBody > | New (const word &name, const scalar &m, const vector &c, const symmTensor &Ic) |
Select constructed from components. More... | |
static autoPtr< rigidBody > | New (const word &name, const dictionary &dict) |
Select constructed from name and dictionary. More... | |
![]() | |
static symmTensor | Ioc (const scalar m, const vector &c) |
Return the difference between the inertia tensor of the rigid-body. More... | |
Construct from name, mass, centre of mass and radius.
Definition at line 43 of file sphereI.H.
Referenced by sphere::clone().
|
inline |
Construct from dictionary.
Definition at line 56 of file sphereI.H.
References Foam::constant::universal::c, dict, and Foam::I.
TypeName | ( | "sphere" | ) |
Runtime type information.
|
virtual |
Return clone of this sphere.
Reimplemented from rigidBody.
Definition at line 51 of file sphere.C.
References sphere::sphere().
|
inline |
|
virtual |
Write.
Reimplemented from rigidBody.
Definition at line 65 of file sphere.C.
References os(), and Foam::type().