18 MRF.makeRelative(phiHbyA);
20 if (p_gh.needReference())
31 while (
pimple.correctNonOrthogonal())
38 p_ghEqn.setReference(p_ghRefCell, p_ghRefValue);
40 p_ghEqn.solve(
mesh.solver(p_gh.select(
pimple.finalInnerIter())));
42 if (
pimple.finalNonOrthogonalIter())
44 phi = phiHbyA - p_ghEqn.flux();
50 U.correctBoundaryConditions();
55 #include "continuityErrs.H" tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
surfaceVectorField n(mesh.Sf()/mesh.magSf())
fvMatrix< scalar > fvScalarMatrix
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > > ddtCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
const dictionary & pimple
tmp< fvVectorMatrix > tUEqn(fvm::ddt(rho, U)+fvm::div(phi, U)+MRF.DDt(rho, U)+turbulence->divDevRhoReff(U)==fvOptions(rho, U))
tmp< surfaceScalarField > interpolate(const RhoType &rho)
GeometricField< vector, fvPatchField, volMesh > volVectorField
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
constrainPressure(p, rho, U, phiHbyA, rhorAUf, MRF)
const dimensionedVector & g
adjustPhi(phiHbyA, U, p_rgh)
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
void makeAbsolute(surfaceScalarField &phi, const volVectorField &U)
Make the given flux absolute.
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
volScalarField rAU(1.0/UEqn.A())
MRF makeRelative(fvc::interpolate(rho), phiHbyA)