Go to the documentation of this file.
33 namespace sixDoFSolvers
73 <<
"The symplectic integrator is explicit "
74 "and can only be solved once per time-step"
82 v() = tConstraints() & (v0() + aDamp()*0.5*deltaT0*
a0());
83 pi() = rConstraints() & (pi0() + aDamp()*0.5*deltaT0*tau0());
85 centreOfRotation() = centreOfRotation0() + deltaT*v();
89 pi() = rConstraints() & Qpi.
second();
92 updateAcceleration(fGlobal, tauGlobal);
97 v() += tConstraints() & aDamp()*0.5*deltaT*a();
98 pi() += rConstraints() & aDamp()*0.5*deltaT*tau();
const Type2 & second() const
Return second.
const Type1 & first() const
Return first.
virtual ~symplectic()
Destructor.
defineTypeNameAndDebug(CrankNicolson, 0)
addToRunTimeSelectionTable(sixDoFSolver, CrankNicolson, dictionary)
This function object calculates and outputs the second invariant of the velocity gradient tensor [1/s...
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.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionedScalar a0
Bohr radius: default SI units: [m].
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Six degree of freedom motion for a rigid body.
A 2-tuple for storing two objects of different types.