sixDoFRigidBodyMotionState Class Reference

Holds the motion state of sixDoF object. Wrapped up together to allow rapid scatter to other processors. The processors must all maintain exactly the same state data to avoid any drift or inconsistency. More...

Public Member Functions

 sixDoFRigidBodyMotionState ()
 Construct null. More...
 
 sixDoFRigidBodyMotionState (const dictionary &dict)
 Construct from dictionary. More...
 
 ~sixDoFRigidBodyMotionState ()
 Destructor. More...
 
const pointcentreOfRotation () const
 Return access to the centre of mass. More...
 
const tensorQ () const
 Return access to the orientation. More...
 
const vectorv () const
 Return access to velocity. More...
 
const vectora () const
 Return access to acceleration. More...
 
const vectorpi () const
 Return access to angular momentum. More...
 
const vectortau () const
 Return access to torque. More...
 
pointcentreOfRotation ()
 Return non-const access to the centre of mass. More...
 
tensorQ ()
 Return non-const access to the orientation. More...
 
vectorv ()
 Return non-const access to vector. More...
 
vectora ()
 Return non-const access to acceleration. More...
 
vectorpi ()
 Return non-const access to angular momentum. More...
 
vectortau ()
 Return non-const access to torque. More...
 
void write (dictionary &dict) const
 Write to dictionary. More...
 
void write (Ostream &) const
 Write to stream. More...
 

Friends

Istreamoperator>> (Istream &, sixDoFRigidBodyMotionState &)
 
Ostreamoperator<< (Ostream &, const sixDoFRigidBodyMotionState &)
 

Detailed Description

Holds the motion state of sixDoF object. Wrapped up together to allow rapid scatter to other processors. The processors must all maintain exactly the same state data to avoid any drift or inconsistency.

Source files

Definition at line 66 of file sixDoFRigidBodyMotionState.H.

Constructor & Destructor Documentation

◆ sixDoFRigidBodyMotionState() [1/2]

Construct null.

Definition at line 30 of file sixDoFRigidBodyMotionState.C.

◆ sixDoFRigidBodyMotionState() [2/2]

Construct from dictionary.

Definition at line 42 of file sixDoFRigidBodyMotionState.C.

◆ ~sixDoFRigidBodyMotionState()

Destructor.

Definition at line 64 of file sixDoFRigidBodyMotionState.C.

Member Function Documentation

◆ centreOfRotation() [1/2]

const Foam::point & centreOfRotation ( ) const
inline

◆ Q() [1/2]

const Foam::tensor & Q ( ) const
inline

Return access to the orientation.

Definition at line 35 of file sixDoFRigidBodyMotionStateI.H.

Referenced by sixDoFSolver::Q(), sixDoFSolver::Q0(), and sixDoFRigidBodyMotion::v().

Here is the caller graph for this function:

◆ v() [1/2]

const Foam::vector & v ( ) const
inline

Return access to velocity.

Definition at line 41 of file sixDoFRigidBodyMotionStateI.H.

Referenced by sixDoFSolver::v(), sixDoFRigidBodyMotion::v(), and sixDoFSolver::v0().

Here is the caller graph for this function:

◆ a() [1/2]

const Foam::vector & a ( ) const
inline

Return access to acceleration.

Definition at line 47 of file sixDoFRigidBodyMotionStateI.H.

Referenced by sixDoFSolver::a(), sixDoFSolver::a0(), and sixDoFRigidBodyMotion::v().

Here is the caller graph for this function:

◆ pi() [1/2]

const Foam::vector & pi ( ) const
inline

Return access to angular momentum.

Definition at line 53 of file sixDoFRigidBodyMotionStateI.H.

Referenced by sixDoFSolver::pi(), sixDoFSolver::pi0(), and sixDoFRigidBodyMotion::v().

Here is the caller graph for this function:

◆ tau() [1/2]

const Foam::vector & tau ( ) const
inline

Return access to torque.

Definition at line 59 of file sixDoFRigidBodyMotionStateI.H.

Referenced by sixDoFSolver::tau(), sixDoFSolver::tau0(), and sixDoFRigidBodyMotion::v().

Here is the caller graph for this function:

◆ centreOfRotation() [2/2]

Foam::point & centreOfRotation ( )
inline

Return non-const access to the centre of mass.

Definition at line 65 of file sixDoFRigidBodyMotionStateI.H.

◆ Q() [2/2]

Foam::tensor & Q ( )
inline

Return non-const access to the orientation.

Definition at line 71 of file sixDoFRigidBodyMotionStateI.H.

◆ v() [2/2]

Foam::vector & v ( )
inline

Return non-const access to vector.

Definition at line 77 of file sixDoFRigidBodyMotionStateI.H.

◆ a() [2/2]

Foam::vector & a ( )
inline

Return non-const access to acceleration.

Definition at line 83 of file sixDoFRigidBodyMotionStateI.H.

◆ pi() [2/2]

Foam::vector & pi ( )
inline

Return non-const access to angular momentum.

Definition at line 89 of file sixDoFRigidBodyMotionStateI.H.

◆ tau() [2/2]

Foam::vector & tau ( )
inline

Return non-const access to torque.

Definition at line 95 of file sixDoFRigidBodyMotionStateI.H.

◆ write() [1/2]

void write ( dictionary dict) const

Write to dictionary.

Definition at line 31 of file sixDoFRigidBodyMotionStateIO.C.

References dictionary::add().

Referenced by sixDoFRigidBodyMotion::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write() [2/2]

void write ( Ostream os) const

Write to stream.

Definition at line 42 of file sixDoFRigidBodyMotionStateIO.C.

References Foam::writeEntry().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
sixDoFRigidBodyMotionState  
)
friend

◆ operator<<

Ostream& operator<< ( Ostream ,
const sixDoFRigidBodyMotionState  
)
friend

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