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 () | |
Default construct, zero-initialized with identity transformation. More... | |
sixDoFRigidBodyMotionState (const dictionary &dict) | |
Construct from dictionary. 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 &os) 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 61 of file sixDoFRigidBodyMotionState.H.
Default construct, zero-initialized with identity transformation.
Definition at line 26 of file sixDoFRigidBodyMotionState.C.
sixDoFRigidBodyMotionState | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 38 of file sixDoFRigidBodyMotionState.C.
|
inline |
Return access to the centre of mass.
Definition at line 24 of file sixDoFRigidBodyMotionStateI.H.
Referenced by sixDoFSolver::centreOfRotation().
|
inline |
Return access to the orientation.
Definition at line 30 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return access to velocity.
Definition at line 36 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return access to acceleration.
Definition at line 42 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return access to angular momentum.
Definition at line 48 of file sixDoFRigidBodyMotionStateI.H.
Referenced by axis::constrainRotation().
|
inline |
Return access to torque.
Definition at line 54 of file sixDoFRigidBodyMotionStateI.H.
Referenced by axis::constrainRotation().
|
inline |
Return non-const access to the centre of mass.
Definition at line 60 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return non-const access to the orientation.
Definition at line 66 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return non-const access to vector.
Definition at line 72 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return non-const access to acceleration.
Definition at line 78 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return non-const access to angular momentum.
Definition at line 84 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return non-const access to torque.
Definition at line 90 of file sixDoFRigidBodyMotionStateI.H.
void write | ( | dictionary & | dict | ) | const |
void write | ( | Ostream & | os | ) | const |
Write to stream.
Definition at line 37 of file sixDoFRigidBodyMotionStateIO.C.
References os(), and Ostream::writeEntry().
|
friend |
|
friend |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.