Public Member Functions | |
TypeName ("rigidBodySolver") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, rigidBodySolver, dictionary,(rigidBodyMotion &body, const dictionary &dict),(body, dict)) | |
rigidBodySolver (rigidBodyMotion &body) | |
virtual | ~rigidBodySolver () |
Destructor. More... | |
virtual void | solve (const scalarField &tau, const Field< spatialVector > &fx)=0 |
Integrate the rigid-body motion for one time-step. More... | |
Static Public Member Functions | |
static autoPtr< rigidBodySolver > | New (rigidBodyMotion &body, const dictionary &dict) |
Protected Member Functions | |
rigidBodyModelState & | state () |
Return the motion state. More... | |
scalarField & | q () |
Return the current joint position and orientation. More... | |
scalarField & | qDot () |
Return the current joint quaternion. More... | |
scalarField & | qDdot () |
Return the current joint acceleration. More... | |
scalar | deltaT () const |
Return the current time-step. More... | |
const rigidBodyModelState & | state0 () const |
Return the previous motion state. More... | |
const scalarField & | q0 () const |
Return the current joint position and orientation. More... | |
const scalarField & | qDot0 () const |
Return the current joint quaternion. More... | |
const scalarField & | qDdot0 () const |
Return the current joint acceleration. More... | |
scalar | deltaT0 () const |
Return the previous time-step. More... | |
void | correctQuaternionJoints () |
Correct the quaternion joints based on the current change in q. More... | |
Protected Attributes | |
rigidBodyMotion & | model_ |
The rigid-body model. More... | |
Definition at line 53 of file rigidBodySolver.H.
rigidBodySolver | ( | rigidBodyMotion & | body | ) |
Definition at line 45 of file rigidBodySolver.C.
|
virtual |
Destructor.
Definition at line 53 of file rigidBodySolver.C.
|
inlineprotected |
Return the motion state.
Definition at line 30 of file rigidBodySolverI.H.
References rigidBodySolver::model_.
|
inlineprotected |
Return the current joint position and orientation.
Definition at line 36 of file rigidBodySolverI.H.
|
inlineprotected |
Return the current joint quaternion.
Return the current joint velocity
Definition at line 42 of file rigidBodySolverI.H.
|
inlineprotected |
Return the current joint acceleration.
Definition at line 48 of file rigidBodySolverI.H.
|
inlineprotected |
Return the current time-step.
Definition at line 54 of file rigidBodySolverI.H.
|
inlineprotected |
Return the previous motion state.
Definition at line 61 of file rigidBodySolverI.H.
|
inlineprotected |
Return the current joint position and orientation.
Definition at line 66 of file rigidBodySolverI.H.
|
inlineprotected |
Return the current joint quaternion.
Return the current joint velocity
Definition at line 72 of file rigidBodySolverI.H.
|
inlineprotected |
Return the current joint acceleration.
Definition at line 78 of file rigidBodySolverI.H.
|
inlineprotected |
Return the previous time-step.
Definition at line 84 of file rigidBodySolverI.H.
|
protected |
Correct the quaternion joints based on the current change in q.
Definition at line 59 of file rigidBodySolver.C.
References Foam::cos(), forAll, Foam::mag(), and quaternion::normalise().
TypeName | ( | "rigidBodySolver" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
rigidBodySolver | , | ||
dictionary | , | ||
(rigidBodyMotion &body, const dictionary &dict) | , | ||
(body, dict) | |||
) |
|
static |
Definition at line 33 of file rigidBodySolverNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::get(), and Foam::Info.
|
pure virtual |
Integrate the rigid-body motion for one time-step.
Implemented in CrankNicolson, Newmark, and symplectic.
|
protected |
The rigid-body model.
Definition at line 60 of file rigidBodySolver.H.
Referenced by rigidBodySolver::state().