diff --git a/src/ODE/sixDOF/sixDOFODE/sixDOFODE.C b/src/ODE/sixDOF/sixDOFODE/sixDOFODE.C index be61738f2..ada329c45 100644 --- a/src/ODE/sixDOF/sixDOFODE/sixDOFODE.C +++ b/src/ODE/sixDOF/sixDOFODE/sixDOFODE.C @@ -276,21 +276,21 @@ Foam::dimensionedVector Foam::sixDOFODE::force { rForce.value() += translationalRestraints_[trI].restrainingForce ( - t, // Time + t, // Time toRelative, // Transformation tensor - x, // Position in the global c.s. - u // Velocity in the global c.s. + x, // Position in the global c.s. + u // Velocity in the global c.s. ); } - forAll(combinedRestraints_, trI) + forAll(combinedRestraints_, crI) { - rForce.value() += combinedRestraints_[trI].restrainingForce + rForce.value() += combinedRestraints_[crI].restrainingForce ( - t, // Time + t, // Time toRelative, // Transformation tensor - x, // Position in the global c.s. - u // Velocity in the global c.s. + x, // Position in the global c.s. + u // Velocity in the global c.s. ); } @@ -316,19 +316,19 @@ Foam::dimensionedVector Foam::sixDOFODE::moment { rMoment.value() += rotationalRestraints_[rrI].restrainingMoment ( - t, // Time + t, // Time toRelative, // Transformation tensor - omega // Angular velocity in local c.s. + omega // Angular velocity in local c.s. ); } - forAll(combinedRestraints_, rrI) + forAll(combinedRestraints_, crI) { - rMoment.value() += combinedRestraints_[rrI].restrainingMoment + rMoment.value() += combinedRestraints_[crI].restrainingMoment ( - t, // Time + t, // Time toRelative, // Transformation tensor - omega // Angular velocity in local c.s. + omega // Angular velocity in local c.s. ); } diff --git a/src/ODE/sixDOF/sixDOFODE/sixDOFODE.H b/src/ODE/sixDOF/sixDOFODE/sixDOFODE.H index 9368fac9f..1e6482346 100644 --- a/src/ODE/sixDOF/sixDOFODE/sixDOFODE.H +++ b/src/ODE/sixDOF/sixDOFODE/sixDOFODE.H @@ -166,7 +166,7 @@ class sixDOFODE //- List of rotational restraints PtrList rotationalRestraints_; - //- List of combined trans and rot restraints + //- List of combined translational and rotational restraints PtrList combinedRestraints_;