mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
MULES: correct the handling of boundary conditions for limiting the sum
This commit is contained in:
@ -670,17 +670,20 @@ void Foam::MULES::limitSum(SurfaceScalarFieldList& phiPsiCorrs)
|
||||
|
||||
forAll(phiPsiCorrs[0].boundaryField(), patchi)
|
||||
{
|
||||
UPtrList<scalarField> phiPsiCorrsPatch(phiPsiCorrs.size());
|
||||
forAll(phiPsiCorrs, phasei)
|
||||
if (phiPsiCorrs[0].boundaryField()[patchi].coupled())
|
||||
{
|
||||
phiPsiCorrsPatch.set
|
||||
(
|
||||
phasei,
|
||||
&phiPsiCorrs[phasei].boundaryField()[patchi]
|
||||
);
|
||||
}
|
||||
UPtrList<scalarField> phiPsiCorrsPatch(phiPsiCorrs.size());
|
||||
forAll(phiPsiCorrs, phasei)
|
||||
{
|
||||
phiPsiCorrsPatch.set
|
||||
(
|
||||
phasei,
|
||||
&phiPsiCorrs[phasei].boundaryField()[patchi]
|
||||
);
|
||||
}
|
||||
|
||||
limitSum(phiPsiCorrsPatch);
|
||||
limitSum(phiPsiCorrsPatch);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user