From 6b422ec28642b6a6cb55553bd95ae358cd944936 Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Fri, 10 Mar 2017 15:35:38 +0100 Subject: [PATCH] Force/moment update to sixDOFBodies --- src/ODE/sixDOF/sixDOFBodies/sixDOFBodies.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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