1if (
pimple.dict().getOrDefault(
"hydrostaticInitialization",
false))
3 volScalarField& ph_rgh = regIOobject::store
21 p = ph_rgh +
rho*
gh + pRef;
27 pimple.dict().getOrDefault<label>(
"nHydrostaticCorrectors", 5)
30 for (label i=0; i<
nCorr; i++)
32 surfaceScalarField
rhof(
"rhof", fvc::interpolate(
rho));
34 surfaceScalarField
phig
43 fvScalarMatrix ph_rghEqn
45 fvm::laplacian(
rhof, ph_rgh) == fvc::div(
phig)
50 p = ph_rgh +
rho*
gh + pRef;
54 Info<<
"Hydrostatic pressure variation "
55 << (
max(ph_rgh) - min(ph_rgh)).value() << endl;
const surfaceScalarField & ghf
const volScalarField & gh
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
surfaceScalarField phig("phig", -rhorAUf *ghf *fvc::snGrad(rho) *mesh.magSf())
surfaceScalarField rhof(fvc::interpolate(rho, "div(phi,rho)"))