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 (const sixDoFRigidBodyMotionState &) | |
Construct as copy. 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... | |
Private Attributes | |
point | centreOfRotation_ |
Current position of the centre of mass of the body. More... | |
tensor | Q_ |
Orientation, stored as the rotation tensor to transform. More... | |
vector | v_ |
vector | a_ |
vector | pi_ |
Angular momentum of body, in body local reference frame. More... | |
vector | tau_ |
Total torque on body, in body local reference frame. 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.
sixDoFRigidBodyMotionState | ( | const sixDoFRigidBodyMotionState & | sDoFRBMS | ) |
Construct as copy.
Definition at line 63 of file sixDoFRigidBodyMotionState.C.
Destructor.
Definition at line 78 of file sixDoFRigidBodyMotionState.C.
|
inline |
Return access to the centre of mass.
Definition at line 29 of file sixDoFRigidBodyMotionStateI.H.
References sixDoFRigidBodyMotionState::centreOfRotation_.
Referenced by sixDoFSolver::centreOfRotation().
|
inline |
Return access to the orientation.
Definition at line 35 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return access to velocity.
Definition at line 41 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return access to acceleration.
Definition at line 47 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return access to angular momentum.
Definition at line 53 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return access to torque.
Definition at line 59 of file sixDoFRigidBodyMotionStateI.H.
|
inline |
Return non-const access to the centre of mass.
|
inline |
Return non-const access to vector.
|
inline |
Return non-const access to acceleration.
|
inline |
Return non-const access to angular momentum.
|
inline |
Return non-const access to torque.
void write | ( | dictionary & | dict | ) | const |
Write to dictionary.
Definition at line 31 of file sixDoFRigidBodyMotionStateIO.C.
References sixDoFRigidBodyMotionState::a_, sixDoFRigidBodyMotionState::centreOfRotation_, dict, sixDoFRigidBodyMotionState::pi_, sixDoFRigidBodyMotionState::Q_, sixDoFRigidBodyMotionState::tau_, and sixDoFRigidBodyMotionState::v_.
void write | ( | Ostream & | os | ) | const |
Write to stream.
Definition at line 42 of file sixDoFRigidBodyMotionStateIO.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().
|
friend |
|
friend |
|
private |
Current position of the centre of mass of the body.
Definition at line 71 of file sixDoFRigidBodyMotionState.H.
Referenced by sixDoFRigidBodyMotionState::centreOfRotation(), and sixDoFRigidBodyMotionState::write().
|
private |
Orientation, stored as the rotation tensor to transform.
from the body to the global reference frame, i.e.: globalVector = Q_ & bodyLocalVector bodyLocalVector = Q_.T() & globalVector
Definition at line 77 of file sixDoFRigidBodyMotionState.H.
Referenced by sixDoFRigidBodyMotionState::write().
|
private |
Definition at line 80 of file sixDoFRigidBodyMotionState.H.
Referenced by sixDoFRigidBodyMotionState::write().
|
private |
Definition at line 83 of file sixDoFRigidBodyMotionState.H.
Referenced by sixDoFRigidBodyMotionState::write().
|
private |
Angular momentum of body, in body local reference frame.
Definition at line 86 of file sixDoFRigidBodyMotionState.H.
Referenced by sixDoFRigidBodyMotionState::write().
|
private |
Total torque on body, in body local reference frame.
Definition at line 89 of file sixDoFRigidBodyMotionState.H.
Referenced by sixDoFRigidBodyMotionState::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.