Force/moment update to sixDOFBodies

This commit is contained in:
Vuko Vukcevic 2017-03-10 15:35:38 +01:00 committed by Hrvoje Jasak
parent e7fd51dc97
commit 6b422ec286

View file

@ -132,11 +132,11 @@ void Foam::sixDOFBodies::solve()
// Note: set external force and moment needed to initialize the state // Note: set external force and moment needed to initialize the state
// of the sixDOFODE to correctly take into account multiple calls per // 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 odes_[bodyI].setExternalForceAndMoment
( (
dimensionedVector("zero", dimForce, vector::zero), dimensionedVector(odes_[bodyI].force()),
dimensionedVector("zero", dimForce*dimLength, vector::zero) dimensionedVector(odes_[bodyI].moment())
); );
solvers_[bodyI].solve solvers_[bodyI].solve