masslessBody Class Reference
Inheritance diagram for masslessBody:
Collaboration diagram for masslessBody:

Public Member Functions

 TypeName ("masslessBody")
 Runtime type information. More...
 
 masslessBody ()
 Construct a massless body. More...
 
 masslessBody (const word &name)
 Construct a named massless body. More...
 
 masslessBody (const word &name, const dictionary &dict)
 Construct from dictionary. More...
 
virtual autoPtr< rigidBodyclone () const
 Return clone of this masslessBody. More...
 
virtual ~masslessBody ()
 Destructor. More...
 
virtual bool massless () const
 Return true if this body is a massless component of a composite body. More...
 
virtual void write (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from rigidBody
 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 wordname () const
 Return name. More...
 
void merge (const subBody &)
 Merge a body into this parent body. More...
 
- Public Member Functions inherited from rigidBodyInertia
 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 vectorc () const
 Return the centre of mass of the rigid-body. More...
 
const symmTensorIc () 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 Public Member Functions inherited from rigidBody
static autoPtr< rigidBodyNew (const word &name, const scalar &m, const vector &c, const symmTensor &Ic)
 Select constructed from components. More...
 
static autoPtr< rigidBodyNew (const word &name, const dictionary &dict)
 Select constructed from name and dictionary. More...
 
- 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. More...
 

Detailed Description

Source files

Definition at line 50 of file masslessBody.H.

Constructor & Destructor Documentation

◆ masslessBody() [1/3]

masslessBody ( )
inline

Construct a massless body.

Definition at line 28 of file masslessBodyI.H.

Referenced by masslessBody::masslessBody().

Here is the caller graph for this function:

◆ masslessBody() [2/3]

masslessBody ( const word name)
inline

Construct a named massless body.

Definition at line 34 of file masslessBodyI.H.

References masslessBody::masslessBody().

Here is the call graph for this function:

◆ masslessBody() [3/3]

masslessBody ( const word name,
const dictionary dict 
)
inline

Construct from dictionary.

Definition at line 41 of file masslessBodyI.H.

◆ ~masslessBody()

~masslessBody ( )
virtual

Destructor.

Definition at line 57 of file masslessBody.C.

Member Function Documentation

◆ TypeName()

TypeName ( "masslessBody"  )

Runtime type information.

◆ clone()

Foam::autoPtr< Foam::RBD::rigidBody > clone ( ) const
virtual

Return clone of this masslessBody.

Reimplemented from rigidBody.

Reimplemented in jointBody.

Definition at line 49 of file masslessBody.C.

◆ massless()

bool massless ( ) const
virtual

Return true if this body is a massless component of a composite body.

Reimplemented from rigidBody.

Definition at line 63 of file masslessBody.C.

◆ write()

void write ( Ostream os) const
virtual

Write.

Reimplemented from rigidBody.

Definition at line 69 of file masslessBody.C.

References Foam::type(), and Foam::writeEntry().

Here is the call graph for this function:

The documentation for this class was generated from the following files: