chtMultiRegionFoam: Corrected pressure and density update order

Resolves bug-report https://bugs.openfoam.org/view.php?id=2663
This commit is contained in:
Henry Weller
2017-08-15 10:01:57 +01:00
parent 718111a3b2
commit 2d41f24639

View File

@ -70,12 +70,12 @@ constrainPressure(p_rgh, rho, U, phiHbyA, rhorAUf, MRF);
}
}
p = p_rgh + rho*gh;
// Thermodynamic density update
thermo.correctRho(psi*p - psip0);
}
p = p_rgh + rho*gh;
// Update pressure time derivative if needed
if (thermo.dpdt())
{