33 namespace sixDoFSolvers
74 v() = tConstraints() & (v0() + aDamp()*0.5*deltaT0*
a0());
75 pi() = rConstraints() & (pi0() + aDamp()*0.5*deltaT0*tau0());
77 centreOfRotation() = centreOfRotation0() + deltaT*v();
81 pi() = rConstraints() & Qpi.
second();
84 updateAcceleration(fGlobal, tauGlobal);
89 v() += tConstraints() & aDamp()*0.5*deltaT*a();
90 pi() += rConstraints() & aDamp()*0.5*deltaT*tau();
Macros for easy insertion into run-time selection tables.
A 2-tuple for storing two objects of different types.
const Type2 & second() const
Return second.
const Type1 & first() const
Return first.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Six degree of freedom motion for a rigid body.
Symplectic 2nd-order explicit time-integrator for 6DoF solid-body motion.
virtual ~symplectic()
Destructor.
symplectic(const dictionary &dict, sixDoFRigidBodyMotion &body)
Construct from a dictionary and the body.
virtual void solve(bool firstIter, const vector &fGlobal, const vector &tauGlobal, scalar deltaT, scalar deltaT0)
Drag coefficient.
const dimensionedScalar a0
Bohr radius: default SI units: [m].
addToRunTimeSelectionTable(sixDoFSolver, CrankNicolson, dictionary)
defineTypeNameAndDebug(CrankNicolson, 0)