Minor formatting in sixDOFODE class

This commit is contained in:
Vuko Vukcevic 2018-06-19 07:49:20 +02:00
parent cee5c3e681
commit 2b6f07eb43
2 changed files with 15 additions and 15 deletions

View file

@ -276,21 +276,21 @@ Foam::dimensionedVector Foam::sixDOFODE::force
{ {
rForce.value() += translationalRestraints_[trI].restrainingForce rForce.value() += translationalRestraints_[trI].restrainingForce
( (
t, // Time t, // Time
toRelative, // Transformation tensor toRelative, // Transformation tensor
x, // Position in the global c.s. x, // Position in the global c.s.
u // Velocity 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 toRelative, // Transformation tensor
x, // Position in the global c.s. x, // Position in the global c.s.
u // Velocity 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 rMoment.value() += rotationalRestraints_[rrI].restrainingMoment
( (
t, // Time t, // Time
toRelative, // Transformation tensor 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 toRelative, // Transformation tensor
omega // Angular velocity in local c.s. omega // Angular velocity in local c.s.
); );
} }

View file

@ -166,7 +166,7 @@ class sixDOFODE
//- List of rotational restraints //- List of rotational restraints
PtrList<rotationalRestraint> rotationalRestraints_; PtrList<rotationalRestraint> rotationalRestraints_;
//- List of combined trans and rot restraints //- List of combined translational and rotational restraints
PtrList<combinedRestraint> combinedRestraints_; PtrList<combinedRestraint> combinedRestraints_;