59 #ifndef CrankNicolson_H 60 #define CrankNicolson_H 68 namespace sixDoFSolvers
Six degree of freedom motion for a rigid body.
TypeName("CrankNicolson")
Runtime type information.
CrankNicolson(const dictionary &dict, sixDoFRigidBodyMotion &body)
Construct from a dictionary and the body.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void solve(bool firstIter, const vector &fGlobal, const vector &tauGlobal, scalar deltaT, scalar deltaT0)
Drag coefficient.
dictionary dict_
Model dictionary.
Crank-Nicolson 2nd-order time-integrator for 6DoF solid-body motion.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
virtual autoPtr< sixDoFSolver > clone() const
Construct and return a clone.
sixDoFRigidBodyMotion & body_
The rigid body.
virtual ~CrankNicolson()
Destructor.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...