mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated sixDoF BC after change to forces calculation
This commit is contained in:
@ -218,7 +218,7 @@ void sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs()
|
||||
|
||||
forces f("forces", db(), forcesDict);
|
||||
|
||||
forces::forcesMoments fm = f.calcForcesMoment();
|
||||
f.calcForcesMoment();
|
||||
|
||||
// Get the forces on the patch faces at the current positions
|
||||
|
||||
@ -232,8 +232,8 @@ void sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs()
|
||||
|
||||
motion_.updateForce
|
||||
(
|
||||
fm.first().first() + fm.first().second() + g_*motion_.mass(),
|
||||
fm.second().first() + fm.second().second(),
|
||||
f.forceEff() + g_*motion_.mass(),
|
||||
f.momentEff(),
|
||||
t.deltaTValue()
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user