Loading...
Searching...
No Matches
jointBody Class Reference

#include <jointBody.H>

Inheritance diagram for jointBody:
Collaboration diagram for jointBody:

Public Member Functions

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

Detailed Description

Definition at line 51 of file jointBody.H.

Constructor & Destructor Documentation

◆ jointBody() [1/3]

jointBody ( )
inline

Construct a joint body.

Definition at line 23 of file jointBodyI.H.

Referenced by clone().

Here is the caller graph for this function:

◆ jointBody() [2/3]

jointBody ( const word & name)
inline

Construct a named joint body.

Definition at line 27 of file jointBodyI.H.

References masslessBody::masslessBody(), and rigidBody::name().

Here is the call graph for this function:

◆ jointBody() [3/3]

jointBody ( const word & name,
const dictionary & dict )
inline

Construct from dictionary.

Definition at line 33 of file jointBodyI.H.

References dict, masslessBody::masslessBody(), and rigidBody::name().

Here is the call graph for this function:

◆ ~jointBody()

~jointBody ( )
virtual

Destructor.

Definition at line 52 of file jointBody.C.

Member Function Documentation

◆ TypeName()

TypeName ( "jointBody" )

Runtime type information.

References dict, and rigidBody::name().

Here is the call graph for this function:

◆ clone()

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

Return clone of this jointBody.

Reimplemented from masslessBody.

Definition at line 44 of file jointBody.C.

References jointBody().

Here is the call graph for this function:

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