mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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:
@ -22,7 +22,7 @@ surfaceScalarField phiHbyA
|
|||||||
|
|
||||||
MRF.makeRelative(fvc::interpolate(rho), 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();
|
const bool adjustMass = closedVolume && !thermo.incompressible();
|
||||||
|
|
||||||
phiHbyA += phig;
|
phiHbyA += phig;
|
||||||
|
|||||||
Reference in New Issue
Block a user