pEqn.H
Go to the documentation of this file.
1rho = thermo.rho();
2
3volScalarField rAU(1.0/UEqn.A());
4surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho*rAU));
5volVectorField HbyA(constrainHbyA(rAU*UEqn.H(), U, p));
6
7surfaceScalarField phig("phig", -rhorAUf*ghf*fvc::snGrad(rho)*mesh.magSf());
8
9surfaceScalarField phiHbyA
10(
11 "phiHbyA",
12 (
13 fvc::flux(rho*HbyA)
14 + MRF.zeroFilter(rhorAUf*fvc::ddtCorr(rho, U, phi))
15 )
16 + phig
17);
18
19MRF.makeRelative(fvc::interpolate(rho), phiHbyA);
20
21// Update the pressure BCs to ensure flux consistency
23
24while (pimple.correctNonOrthogonal())
25{
26 fvScalarMatrix p_rghEqn
27 (
28 fvm::ddt(psi, p_rgh)
29 + fvc::ddt(psi, rho)*gh
30 + fvc::ddt(psi)*pRef
31 + fvc::div(phiHbyA)
32 - fvm::laplacian(rhorAUf, p_rgh)
33 ==
34 parcels.Srho()
35 + surfaceFilm.Srho()
36 + fvOptions(psi, p_rgh, rho.name())
37 );
38
39 p_rghEqn.solve(mesh.solver(p_rgh.select(pimple.finalInnerIter())));
40
41 if (pimple.finalNonOrthogonalIter())
42 {
43 phi = phiHbyA + p_rghEqn.flux();
44 U = HbyA + rAU*fvc::reconstruct((p_rghEqn.flux() + phig)/rhorAUf);
45 U.correctBoundaryConditions();
46 fvOptions.correct(U);
47 }
48}
49
50p = p_rgh + rho*gh + pRef;
51
52#include "rhoEqn.H"
53#include "compressibleContinuityErrs.H"
54
55K = 0.5*magSqr(U);
56
57if (thermo.dpdt())
58{
59 dpdt = fvc::ddt(p);
60}
CGAL::Exact_predicates_exact_constructions_kernel K
volScalarField & p_rgh
fv::options & fvOptions
surfaceScalarField & phi
const surfaceScalarField & ghf
IOMRFZoneList & MRF
const volScalarField & gh
pimpleControl & pimple
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
U
Definition: pEqn.H:72
volScalarField & p
const volScalarField & psi
regionModels::surfaceFilmModel & surfaceFilm
surfaceScalarField phig("phig", -rhorAUf *ghf *fvc::snGrad(rho) *mesh.magSf())
surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho *rAU))
fvVectorMatrix & UEqn
Definition: UEqn.H:13
phiHbyA
Definition: pcEqn.H:73
HbyA
Definition: pcEqn.H:74
dynamicFvMesh & mesh
volScalarField & dpdt
tmp< volScalarField > rAU
Definition: initCorrectPhi.H:1
Solve the continuity for density.