Public Member Functions | List of all members
sphere Class Reference
Inheritance diagram for sphere:
Inheritance graph
[legend]
Collaboration diagram for sphere:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("sphere")
 
 sphere (const word &name, const scalar m, const vector &c, const scalar r)
 
 sphere (const word &name, const dictionary &dict)
 
virtual autoPtr< rigidBodyclone () const
 
virtual ~sphere ()
 
scalar r () const
 
virtual void write (Ostream &) const
 
- Public Member Functions inherited from rigidBody
 TypeName ("rigidBody")
 
 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)
 
 rigidBody (const word &name, const rigidBodyInertia &rbi)
 
 rigidBody (const word &name, const dictionary &dict)
 
virtual ~rigidBody ()
 
const wordname () const
 
virtual bool massless () const
 
void merge (const subBody &)
 
- Public Member Functions inherited from rigidBodyInertia
 rigidBodyInertia ()
 
 rigidBodyInertia (const scalar m, const vector &c, const symmTensor &Ic)
 
 rigidBodyInertia (const dictionary &dict)
 
 rigidBodyInertia (const spatialTensor &st)
 
 rigidBodyInertia (Istream &is)
 
scalar m () const
 
const vectorc () const
 
const symmTensorIc () const
 
symmTensor Ioc () const
 
symmTensor Icc (const vector &c) const
 
symmTensor Io () const
 
scalar kineticEnergy (const spatialVector &v)
 
 operator spatialTensor () const
 
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)
 
static autoPtr< rigidBodyNew (const word &name, const dictionary &dict)
 
- Static Public Member Functions inherited from rigidBodyInertia
static symmTensor Ioc (const scalar m, const vector &c)
 

Detailed Description

Definition at line 52 of file sphere.H.

Constructor & Destructor Documentation

◆ sphere() [1/2]

sphere ( const word name,
const scalar  m,
const vector c,
const scalar  r 
)
inline

Definition at line 36 of file sphereI.H.

Referenced by sphere::clone().

Here is the caller graph for this function:

◆ sphere() [2/2]

sphere ( const word name,
const dictionary dict 
)
inline

Definition at line 49 of file sphereI.H.

References Foam::constant::universal::c, dict, and Foam::I.

◆ ~sphere()

~sphere ( )
virtual

Definition at line 52 of file sphere.C.

Member Function Documentation

◆ TypeName()

TypeName ( "sphere"  )

◆ clone()

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

Reimplemented from rigidBody.

Definition at line 44 of file sphere.C.

References sphere::sphere().

Here is the call graph for this function:

◆ r()

Foam::scalar r ( ) const
inline

Definition at line 65 of file sphereI.H.

◆ write()

void write ( Ostream os) const
virtual

Reimplemented from rigidBody.

Definition at line 58 of file sphere.C.

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

Here is the call graph for this function:

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