chtMultiRegionFoam: Only do closed volume handling when running steady

This resolves bug report https://bugs.openfoam.org/view.php?id=3105
This commit is contained in:
Will Bainbridge
2018-11-13 09:24:30 +00:00
parent 00e347c45a
commit 9763346f31

View File

@ -22,7 +22,7 @@ surfaceScalarField phiHbyA
MRF.makeRelative(fvc::interpolate(rho), phiHbyA);
const bool closedVolume = adjustPhi(phiHbyA, U, p_rgh);
const bool closedVolume = mesh.steady() && adjustPhi(phiHbyA, U, p_rgh);
const bool adjustMass = closedVolume && !thermo.incompressible();
phiHbyA += phig;