mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user