Loading...
Searching...
No Matches
CrankNicolson Class Reference

Crank-Nicolson 2nd-order time-integrator for 6DoF solid-body motion. More...

#include <CrankNicolson.H>

Inheritance diagram for CrankNicolson:
Collaboration diagram for CrankNicolson:

Public Member Functions

 TypeName ("CrankNicolson")
 Runtime type information.
 CrankNicolson (rigidBodyMotion &body, const dictionary &dict)
 Construct for the given body from dictionary.
virtual ~CrankNicolson ()
 Destructor.
virtual void solve (const scalarField &tau, const Field< spatialVector > &fx)
 Integrate the rigid-body motion for one time-step.
Public Member Functions inherited from rigidBodySolver
 TypeName ("rigidBodySolver")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, rigidBodySolver, dictionary,(rigidBodyMotion &body, const dictionary &dict),(body, dict))
 rigidBodySolver (rigidBodyMotion &body)
virtual ~rigidBodySolver ()
 Destructor.

Additional Inherited Members

Static Public Member Functions inherited from rigidBodySolver
static autoPtr< rigidBodySolverNew (rigidBodyMotion &body, const dictionary &dict)
Protected Member Functions inherited from rigidBodySolver
rigidBodyModelStatestate ()
 Return the motion state.
scalarFieldq ()
 Return the current joint position and orientation.
scalarFieldqDot ()
 Return the current joint quaternion.
scalarFieldqDdot ()
 Return the current joint acceleration.
scalar deltaT () const
 Return the current time-step.
const rigidBodyModelStatestate0 () const
 Return the previous motion state.
const scalarFieldq0 () const
 Return the current joint position and orientation.
const scalarFieldqDot0 () const
 Return the current joint quaternion.
const scalarFieldqDdot0 () const
 Return the current joint acceleration.
scalar deltaT0 () const
 Return the previous time-step.
void correctQuaternionJoints ()
 Correct the quaternion joints based on the current change in q.
Protected Attributes inherited from rigidBodySolver
rigidBodyMotionmodel_
 The rigid-body model.

Detailed Description

Crank-Nicolson 2nd-order time-integrator for 6DoF solid-body motion.

The off-centering coefficients for acceleration (velocity integration) and velocity (position/orientation integration) may be specified but default values of 0.5 for each are used if they are not specified. With the default off-centering this scheme is equivalent to the Newmark scheme with default coefficients.

Example specification in dynamicMeshDict:

solver
{
    type    CrankNicolson;
    aoc     0.5;    // Acceleration off-centering coefficient
    voc     0.5;    // Velocity off-centering coefficient
}
See also
Foam::RBD::rigidBodySolvers::Newmark
Source files

Definition at line 69 of file CrankNicolson.H.

Constructor & Destructor Documentation

◆ CrankNicolson()

CrankNicolson ( rigidBodyMotion & body,
const dictionary & dict )

Construct for the given body from dictionary.

Definition at line 42 of file CrankNicolson.C.

References dict, and rigidBodySolver::rigidBodySolver().

Here is the call graph for this function:

◆ ~CrankNicolson()

~CrankNicolson ( )
virtual

Destructor.

Definition at line 56 of file CrankNicolson.C.

Member Function Documentation

◆ TypeName()

TypeName ( "CrankNicolson" )

Runtime type information.

References dict.

◆ solve()

void solve ( const scalarField & tau,
const Field< spatialVector > & fx )
virtual

The documentation for this class was generated from the following files: