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 point & | centreOfRotation () const |
Return access to the centre of mass. More... | |
const tensor & | Q () const |
Return access to the orientation. More... | |
const vector & | v () const |
Return access to velocity. More... | |
const vector & | a () const |
Return access to acceleration. More... | |
const vector & | pi () const |
Return access to angular momentum. More... | |
const vector & | tau () const |
Return access to torque. More... | |
point & | centreOfRotation () |
Return non-const access to the centre of mass. More... | |
tensor & | Q () |
Return non-const access to the orientation. More... | |
vector & | v () |
Return non-const access to vector. More... | |
vector & | a () |
Return non-const access to acceleration. More... | |
vector & | pi () |
Return non-const access to angular momentum. More... | |
vector & | tau () |
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 | |
Istream & | operator>> (Istream &, sixDoFRigidBodyMotionState &) |
Ostream & | operator<< (Ostream &, const sixDoFRigidBodyMotionState &) |
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.
Definition at line 66 of file sixDoFRigidBodyMotionState.H.
Construct null.
Definition at line 30 of file sixDoFRigidBodyMotionState.C.
sixDoFRigidBodyMotionState | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 42 of file sixDoFRigidBodyMotionState.C.
Destructor.
Definition at line 64 of file sixDoFRigidBodyMotionState.C.
|
inline |
Return access to the centre of mass.
Definition at line 29 of file sixDoFRigidBodyMotionStateI.H.
Referenced by sixDoFSolver::centreOfRotation(), sixDoFRigidBodyMotion::centreOfRotation(), sixDoFSolver::centreOfRotation0(), sixDoFRigidBodyMotion::momentArm(), and sixDoFRigidBodyMotion::sixDoFRigidBodyMotion().
|
inline |
Return access to the orientation.
Definition at line 35 of file sixDoFRigidBodyMotionStateI.H.
Referenced by sixDoFSolver::Q(), sixDoFSolver::Q0(), and sixDoFRigidBodyMotion::v().
|
inline |
Return access to velocity.
Definition at line 41 of file sixDoFRigidBodyMotionStateI.H.
Referenced by sixDoFSolver::v(), sixDoFRigidBodyMotion::v(), and sixDoFSolver::v0().
|
inline |
Return access to acceleration.
Definition at line 47 of file sixDoFRigidBodyMotionStateI.H.
Referenced by sixDoFSolver::a(), sixDoFSolver::a0(), and sixDoFRigidBodyMotion::v().
|
inline |
Return access to angular momentum.
Definition at line 53 of file sixDoFRigidBodyMotionStateI.H.
Referenced by sixDoFSolver::pi(), sixDoFSolver::pi0(), and sixDoFRigidBodyMotion::v().
|
inline |
Return access to torque.
Definition at line 59 of file sixDoFRigidBodyMotionStateI.H.
Referenced by sixDoFSolver::tau(), sixDoFSolver::tau0(), and sixDoFRigidBodyMotion::v().
|
inline |
Return non-const access to the centre of mass.
Definition at line 65 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return non-const access to the orientation.
Definition at line 71 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return non-const access to vector.
Definition at line 77 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return non-const access to acceleration.
Definition at line 83 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return non-const access to angular momentum.
Definition at line 89 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return non-const access to torque.
Definition at line 95 of file sixDoFRigidBodyMotionStateI.H.
void write | ( | dictionary & | dict | ) | const |
Write to dictionary.
Definition at line 31 of file sixDoFRigidBodyMotionStateIO.C.
References dictionary::add().
Referenced by sixDoFRigidBodyMotion::write().
void write | ( | Ostream & | os | ) | const |
Write to stream.
Definition at line 42 of file sixDoFRigidBodyMotionStateIO.C.
References Foam::writeEntry().
|
friend |
|
friend |