pressureControl: Added support for p_rgh

Updated buoyantPimpleFoam to use pressureControl with p_rgh support.
This commit is contained in:
Henry Weller
2020-03-05 12:14:58 +00:00
parent a2f4320c0a
commit f933861c48
3 changed files with 35 additions and 4 deletions

View File

@ -75,7 +75,14 @@ volScalarField p_rgh
// Force p_rgh to be consistent with p
p_rgh = p - rho*gh;
pressureControl pressureControl(p, rho, pimple.dict(), false);
pressureControl pressureControl
(
p,
p_rgh,
rho,
pimple.dict(),
thermo.incompressible()
);
mesh.setFluxRequired(p_rgh.name());