41 #ifndef sixDoFSolver_H 42 #define sixDoFSolver_H 108 inline scalar
aDamp()
const;
Six degree of freedom motion for a rigid body.
vector & v()
Return non-const access to vector.
tensor tConstraints() const
Translational constraint tensor.
tensor rConstraints() const
Rotational constraint tensor.
point & centreOfRotation()
Return the current centre of rotation.
TypeName("sixDoFSolver")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
virtual void solve(bool firstIter, const vector &fGlobal, const vector &tauGlobal, scalar deltaT, scalar deltaT0)=0
Drag coefficient.
virtual ~sixDoFSolver()
Destructor.
dictionary dict_
Model dictionary.
const vector & pi0() const
Return the angular momentum at previous time-step.
tensor & Q()
Return the orientation.
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.
declareRunTimeSelectionTable(autoPtr, sixDoFSolver, dictionary,(const dictionary &dict, sixDoFRigidBodyMotion &body),(dict, body))
vector & pi()
Return non-const access to angular momentum.
virtual autoPtr< sixDoFSolver > clone() const =0
Construct and return a clone.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
sixDoFSolver(const dictionary &dict, sixDoFRigidBodyMotion &body)
const tensor & Q0() const
Return the orientation at previous time-step.
void updateAcceleration(const vector &fGlobal, const vector &tauGlobal)
Update and relax accelerations from the force and torque.
sixDoFRigidBodyMotion & body_
The rigid body.
const point & centreOfRotation0() const
Return the centre of rotation at previous time-step.
const vector & a0() const
Return the acceleration at previous time-step.
void write(Ostream &) const
Write.
const vector & tau0() const
Return the torque at previous time-step.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
void updateConstraints()
Update the constraints to the object.
Macros to ease declaration of run-time selection tables.
vector & a()
Return non-const access to acceleration.
static autoPtr< sixDoFSolver > New(const dictionary &dict, sixDoFRigidBodyMotion &body)
Tensor of scalars, i.e. Tensor<scalar>.
vector & tau()
Return non-const access to torque.
scalar aDamp() const
Acceleration damping coefficient (for steady-state simulations)
const vector & v0() const
Return the velocity at previous time-step.