rigidBodyDynamics: Added support for running in parallel

The joint-space dynamics is solved on the master processor only and the
resulting joint-state distributed to the slave processors on which the
body-state is then updated.  This guarantees consistency of the body
position and orientation on all processors.
This commit is contained in:
Henry Weller
2016-04-19 10:32:25 +01:00
parent a1f209c482
commit 125a986467
5 changed files with 21 additions and 22 deletions

View File

@ -270,6 +270,13 @@ void Foam::rigidBodyMeshMotion::solve()
);
}
if (Pstream::master() && model_.report())
{
forAll(bodyMeshes_, bi)
{
model_.status(bodyMeshes_[bi].bodyID_);
}
}
// Update the displacements
if (bodyMeshes_.size() == 1)