multiphaseEuler::setRDeltaT: Loop over the moving phases only to obtain maxPhi

This commit is contained in:
Henry Weller
2023-09-04 13:43:25 +01:00
parent 58f82fccbd
commit 3516b97a4d

View File

@ -47,9 +47,9 @@ void Foam::solvers::multiphaseEuler::setRDeltaT()
surfaceScalarField maxPhi("maxPhi", phi); surfaceScalarField maxPhi("maxPhi", phi);
forAll(phases, phasei) forAll(movingPhases, movingPhasei)
{ {
maxPhi = max(maxPhi, mag(phases[phasei].phi())); maxPhi = max(maxPhi, mag(movingPhases[movingPhasei].phi()));
} }
// Set the reciprocal time-step from the local Courant number // Set the reciprocal time-step from the local Courant number