static autoPtr< rigidBodySolver > New(rigidBodyMotion &body, const dictionary &dict)
const rigidBodyModelState & state0() const
Return the previous motion state.
const scalarField & qDdot0() const
Return the current joint acceleration.
rigidBodyModelState & state()
Return the motion state.
scalar deltaT0() const
Return the previous time-step.
scalarField & q()
Return the current joint position and orientation.
Holds the motion state of rigid-body model.
scalar deltaT() const
Return the current time-step.
declareRunTimeSelectionTable(autoPtr, rigidBodySolver, dictionary,(rigidBodyMotion &body, const dictionary &dict),(body, dict))
const scalarField & q0() const
Return the current joint position and orientation.
Six degree of freedom motion for a rigid body.
TypeName("rigidBodySolver")
Runtime type information.
virtual void solve(const scalarField &tau, const Field< spatialVector > &fx)=0
Integrate the rigid-body motion for one time-step.
const scalarField & qDot0() const
Return the current joint quaternion.
rigidBodySolver(rigidBodyMotion &body)
scalarField & qDot()
Return the current joint quaternion.
scalarField & qDdot()
Return the current joint acceleration.
virtual ~rigidBodySolver()
Destructor.
void correctQuaternionJoints()
Correct the quaternion joints based on the current change in q.