Go to the documentation of this file.
35 #ifndef sixDoFSolver_H
36 #define sixDoFSolver_H
99 inline scalar
aDamp()
const;
Templated 3D tensor derived from VectorSpace adding construction from 9 components,...
tensor rConstraints() const
Rotational constraint tensor.
tensor & Q()
Return the orientation.
const vector & tau0() const
Return the torque at previous time-step.
point & centreOfRotation()
Return the current centre of rotation.
vector & a()
Return non-const access to acceleration.
static autoPtr< sixDoFSolver > New(const dictionary &dict, sixDoFRigidBodyMotion &body)
const vector & v0() const
Return the velocity at previous time-step.
vector & v()
Return non-const access to vector.
const tensor & Q0() const
Return the orientation at previous time-step.
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.
sixDoFSolver(sixDoFRigidBodyMotion &body)
virtual void solve(bool firstIter, const vector &fGlobal, const vector &tauGlobal, scalar deltaT, scalar deltaT0)=0
Drag coefficient.
const point & centreOfRotation0() const
Return the centre of rotation at previous time-step.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual ~sixDoFSolver()
Destructor.
declareRunTimeSelectionTable(autoPtr, sixDoFSolver, dictionary,(const dictionary &dict, sixDoFRigidBodyMotion &body),(dict, body))
TypeName("sixDoFSolver")
Runtime type information.
vector & pi()
Return non-const access to angular momentum.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Six degree of freedom motion for a rigid body.
scalar aDamp() const
Acceleration damping coefficient (for steady-state simulations)
Macros to ease declaration of run-time selection tables.
void updateAcceleration(const vector &fGlobal, const vector &tauGlobal)
Update and relax accelerations from the force and torque.
tensor tConstraints() const
Translational constraint tensor.
const vector & pi0() const
Return the angular momentum at previous time-step.
vector & tau()
Return non-const access to torque.
A 2-tuple for storing two objects of different types.
sixDoFRigidBodyMotion & body_
The rigid body.
const vector & a0() const
Return the acceleration at previous time-step.