Holds the motion state of rigid-body model. More...
Public Member Functions | |
rigidBodyModelState (const rigidBodyModel &model) | |
Construct for the given rigidBodyModel. More... | |
rigidBodyModelState (const rigidBodyModel &model, const dictionary &dict) | |
Construct from dictionary for the given rigidBodyModel. More... | |
const scalarField & | q () const |
Return access to the joint position and orientation. More... | |
const scalarField & | qDot () const |
Return access to the joint velocity. More... | |
const scalarField & | qDdot () const |
Return access to the joint acceleration. More... | |
scalar | t () const |
Return access to the time. More... | |
scalar | deltaT () const |
Return access to the time-step. More... | |
scalarField & | q () |
Return access to the joint position and orientation. More... | |
scalarField & | qDot () |
Return access to the joint velocity. More... | |
scalarField & | qDdot () |
Return access to the joint acceleration. More... | |
scalar & | t () |
Return access to the time. More... | |
scalar & | deltaT () |
Return access to the time-step. More... | |
void | write (dictionary &dict) const |
Write to dictionary. More... | |
void | write (Ostream &) const |
Write to stream. More... | |
Friends | |
Istream & | operator>> (Istream &, rigidBodyModelState &) |
Ostream & | operator<< (Ostream &, const rigidBodyModelState &) |
Holds the motion state of rigid-body model.
Definition at line 67 of file rigidBodyModelState.H.
rigidBodyModelState | ( | const rigidBodyModel & | model | ) |
Construct for the given rigidBodyModel.
Definition at line 33 of file rigidBodyModelState.C.
rigidBodyModelState | ( | const rigidBodyModel & | model, |
const dictionary & | dict | ||
) |
Construct from dictionary for the given rigidBodyModel.
Definition at line 46 of file rigidBodyModelState.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, rigidBodyModel::nDoF(), and UList< T >::size().
|
inline |
Return access to the joint position and orientation.
Definition at line 30 of file rigidBodyModelStateI.H.
Referenced by rigidBodyModel::forwardDynamics(), and rigidBodyModel::forwardDynamicsCorrection().
|
inline |
Return access to the joint velocity.
Definition at line 36 of file rigidBodyModelStateI.H.
Referenced by rigidBodyModel::forwardDynamics(), and rigidBodyModel::forwardDynamicsCorrection().
|
inline |
Return access to the joint acceleration.
Definition at line 42 of file rigidBodyModelStateI.H.
Referenced by rigidBodyModel::forwardDynamics(), rigidBodyMotion::forwardDynamics(), and rigidBodyModel::forwardDynamicsCorrection().
|
inline |
Return access to the time.
Definition at line 48 of file rigidBodyModelStateI.H.
Referenced by externalForce::restrain().
|
inline |
Return access to the time-step.
Definition at line 54 of file rigidBodyModelStateI.H.
|
inline |
Return access to the joint position and orientation.
Definition at line 60 of file rigidBodyModelStateI.H.
|
inline |
Return access to the joint velocity.
Definition at line 66 of file rigidBodyModelStateI.H.
|
inline |
Return access to the joint acceleration.
Definition at line 72 of file rigidBodyModelStateI.H.
|
inline |
Return access to the time.
Definition at line 84 of file rigidBodyModelStateI.H.
|
inline |
Return access to the time-step.
Definition at line 78 of file rigidBodyModelStateI.H.
void write | ( | dictionary & | dict | ) | const |
Write to dictionary.
Definition at line 33 of file rigidBodyModelStateIO.C.
References dictionary::add(), and dict.
void write | ( | Ostream & | os | ) | const |
Write to stream.
Definition at line 43 of file rigidBodyModelStateIO.C.
References os().
|
friend |
|
friend |