From 9763346f3155fb8e01969d2297eb5d36e24709c3 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Tue, 13 Nov 2018 09:24:30 +0000 Subject: [PATCH] chtMultiRegionFoam: Only do closed volume handling when running steady This resolves bug report https://bugs.openfoam.org/view.php?id=3105 --- .../solvers/heatTransfer/chtMultiRegionFoam/fluid/pEqn.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/pEqn.H b/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/pEqn.H index d2186a71f..05446e6b6 100644 --- a/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/pEqn.H +++ b/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/pEqn.H @@ -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;