1if (
pimple.dict().getOrDefault(
"hydrostaticInitialization",
false))
3 volScalarField& ph_rgh = regIOobject::store
22 p = ph_rgh +
rho*
gh + pRef;
28 pimple.dict().getOrDefault<label>(
"nHydrostaticCorrectors", 5)
31 for (label i=0; i<
nCorr; i++)
33 surfaceScalarField
rhof(
"rhof", fvc::interpolate(
rho));
35 surfaceScalarField
phig
44 fvScalarMatrix ph_rghEqn
46 fvm::laplacian(
rhof, ph_rgh) == fvc::div(
phig)
51 p = ph_rgh +
rho*
gh + pRef;
55 Info<<
"Hydrostatic pressure variation "
56 << (max(ph_rgh) - min(ph_rgh)).value() << endl;
const surfaceScalarField & ghf
const volScalarField & gh
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
constrainPressure(p_rgh, rho, U, phiHbyA, rhorAUf, MRF)
surfaceScalarField phig("phig", -rhorAUf *ghf *fvc::snGrad(rho) *mesh.magSf())
surfaceScalarField rhof(fvc::interpolate(rho, "div(phi,rho)"))