diff --git a/src/ODE/sixDOF/sixDOFBodies/sixDOFBodies.C b/src/ODE/sixDOF/sixDOFBodies/sixDOFBodies.C index c7bdb1b31..1ad5e32dd 100644 --- a/src/ODE/sixDOF/sixDOFBodies/sixDOFBodies.C +++ b/src/ODE/sixDOF/sixDOFBodies/sixDOFBodies.C @@ -132,11 +132,11 @@ void Foam::sixDOFBodies::solve() // Note: set external force and moment needed to initialize the state // of the sixDOFODE to correctly take into account multiple calls per - // time step + // time step. Using constant force and moment throughout simulation. odes_[bodyI].setExternalForceAndMoment ( - dimensionedVector("zero", dimForce, vector::zero), - dimensionedVector("zero", dimForce*dimLength, vector::zero) + dimensionedVector(odes_[bodyI].force()), + dimensionedVector(odes_[bodyI].moment()) ); solvers_[bodyI].solve