chtMultiRegionFoam: Corrected pressure and density update order
Resolves bug-report https://bugs.openfoam.org/view.php?id=2663
This commit is contained in:
@ -70,12 +70,12 @@ constrainPressure(p_rgh, rho, U, phiHbyA, rhorAUf, MRF);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p = p_rgh + rho*gh;
|
||||||
|
|
||||||
// Thermodynamic density update
|
// Thermodynamic density update
|
||||||
thermo.correctRho(psi*p - psip0);
|
thermo.correctRho(psi*p - psip0);
|
||||||
}
|
}
|
||||||
|
|
||||||
p = p_rgh + rho*gh;
|
|
||||||
|
|
||||||
// Update pressure time derivative if needed
|
// Update pressure time derivative if needed
|
||||||
if (thermo.dpdt())
|
if (thermo.dpdt())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user