Public Member Functions | |
TypeName ("sixDoFSolver") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, sixDoFSolver, dictionary,(const dictionary &dict, sixDoFRigidBodyMotion &body),(dict, body)) | |
sixDoFSolver (const dictionary &dict, sixDoFRigidBodyMotion &body) | |
virtual autoPtr< sixDoFSolver > | clone () const =0 |
Construct and return a clone. More... | |
virtual | ~sixDoFSolver () |
Destructor. More... | |
virtual void | solve (bool firstIter, const vector &fGlobal, const vector &tauGlobal, scalar deltaT, scalar deltaT0)=0 |
Drag coefficient. More... | |
void | write (Ostream &) const |
Write. More... | |
Static Public Member Functions | |
static autoPtr< sixDoFSolver > | New (const dictionary &dict, sixDoFRigidBodyMotion &body) |
Protected Member Functions | |
point & | centreOfRotation () |
Return the current centre of rotation. More... | |
tensor & | Q () |
Return 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... | |
const point & | centreOfRotation0 () const |
Return the centre of rotation at previous time-step. More... | |
const tensor & | Q0 () const |
Return the orientation at previous time-step. More... | |
const vector & | v0 () const |
Return the velocity at previous time-step. More... | |
const vector & | a0 () const |
Return the acceleration at previous time-step. More... | |
const vector & | pi0 () const |
Return the angular momentum at previous time-step. More... | |
const vector & | tau0 () const |
Return the torque at previous time-step. More... | |
scalar | aDamp () const |
Acceleration damping coefficient (for steady-state simulations) More... | |
tensor | tConstraints () const |
Translational constraint tensor. More... | |
tensor | rConstraints () const |
Rotational constraint tensor. More... | |
Tuple2< tensor, vector > | rotate (const tensor &Q0, const vector &pi, const scalar deltaT) const |
Apply rotation tensors to Q0 for the given torque (pi) and deltaT. More... | |
void | updateAcceleration (const vector &fGlobal, const vector &tauGlobal) |
Update and relax accelerations from the force and torque. More... | |
void | updateConstraints () |
Update the constraints to the object. More... | |
Protected Attributes | |
sixDoFRigidBodyMotion & | body_ |
The rigid body. More... | |
dictionary | dict_ |
Model dictionary. More... | |
Definition at line 51 of file sixDoFSolver.H.
sixDoFSolver | ( | const dictionary & | dict, |
sixDoFRigidBodyMotion & | body | ||
) |
Definition at line 36 of file sixDoFSolver.C.
|
virtual |
Destructor.
Definition at line 53 of file sixDoFSolver.C.
|
inlineprotected |
Return the current centre of rotation.
Definition at line 24 of file sixDoFSolverI.H.
References sixDoFSolver::body_, and sixDoFRigidBodyMotionState::centreOfRotation().
|
inlineprotected |
Return the orientation.
Definition at line 29 of file sixDoFSolverI.H.
|
inlineprotected |
Return non-const access to vector.
Definition at line 34 of file sixDoFSolverI.H.
|
inlineprotected |
Return non-const access to acceleration.
Definition at line 39 of file sixDoFSolverI.H.
|
inlineprotected |
Return non-const access to angular momentum.
Definition at line 44 of file sixDoFSolverI.H.
|
inlineprotected |
Return non-const access to torque.
Definition at line 49 of file sixDoFSolverI.H.
|
inlineprotected |
Return the centre of rotation at previous time-step.
Definition at line 55 of file sixDoFSolverI.H.
|
inlineprotected |
Return the orientation at previous time-step.
Definition at line 60 of file sixDoFSolverI.H.
|
inlineprotected |
Return the velocity at previous time-step.
Definition at line 66 of file sixDoFSolverI.H.
|
inlineprotected |
Return the acceleration at previous time-step.
Definition at line 72 of file sixDoFSolverI.H.
|
inlineprotected |
Return the angular momentum at previous time-step.
Definition at line 78 of file sixDoFSolverI.H.
|
inlineprotected |
Return the torque at previous time-step.
Definition at line 84 of file sixDoFSolverI.H.
|
inlineprotected |
Acceleration damping coefficient (for steady-state simulations)
Definition at line 89 of file sixDoFSolverI.H.
|
inlineprotected |
Translational constraint tensor.
Definition at line 94 of file sixDoFSolverI.H.
|
inlineprotected |
Rotational constraint tensor.
Definition at line 99 of file sixDoFSolverI.H.
|
inlineprotected |
Apply rotation tensors to Q0 for the given torque (pi) and deltaT.
and return the rotated Q and pi as a tuple
Definition at line 110 of file sixDoFSolverI.H.
References Foam::constant::mathematical::pi().
Update and relax accelerations from the force and torque.
Definition at line 123 of file sixDoFSolverI.H.
|
inlineprotected |
Update the constraints to the object.
Definition at line 131 of file sixDoFSolverI.H.
TypeName | ( | "sixDoFSolver" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
sixDoFSolver | , | ||
dictionary | , | ||
(const dictionary &dict, sixDoFRigidBodyMotion &body) | , | ||
(dict, body) | |||
) |
|
pure virtual |
Construct and return a clone.
Implemented in CrankNicolson, Newmark, and symplectic.
|
static |
Definition at line 27 of file sixDoFSolverNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, and Foam::Info.
|
pure virtual |
Drag coefficient.
Implemented in CrankNicolson, Newmark, and symplectic.
void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 46 of file sixDoFSolver.C.
References sixDoFSolver::dict_, and os().
|
protected |
The rigid body.
Definition at line 60 of file sixDoFSolver.H.
Referenced by sixDoFSolver::centreOfRotation(), symplectic::clone(), Newmark::clone(), and CrankNicolson::clone().
|
protected |
Model dictionary.
Definition at line 65 of file sixDoFSolver.H.
Referenced by symplectic::clone(), Newmark::clone(), CrankNicolson::clone(), and sixDoFSolver::write().