pEqn.H
Go to the documentation of this file.
1 rho = thermo.rho();
2 
3 volScalarField rAU(1.0/UEqn.A());
4 
5 volVectorField HbyA("HbyA", U);
6 HbyA = invA & UEqn.H();
7 
8 if (pimple.transonic())
9 {
11  (
12  "phid",
14  *(
15  (fvc::interpolate(HbyA) & mesh.Sf())
18  )
19  );
20 
21  while (pimple.correctNonOrthogonal())
22  {
23  fvScalarMatrix pEqn
24  (
26  + fvm::div(phid, p)
28  );
29 
30  pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
31 
32  if (pimple.finalNonOrthogonalIter())
33  {
34  phi == pEqn.flux();
35  }
36  }
37 }
38 else
39 {
41  (
42  "phiHbyA",
43  (
44  (fvc::interpolate(rho*HbyA) & mesh.Sf())
46  )
47  );
48 
49  while (pimple.correctNonOrthogonal())
50  {
51  fvScalarMatrix pEqn
52  (
54  + fvc::div(phiHbyA)
56  );
57 
58  pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
59 
60  if (pimple.finalNonOrthogonalIter())
61  {
62  phi = phiHbyA + pEqn.flux();
63  }
64  }
65 }
66 
67 #include "rhoEqn.H"
68 #include "continuityErrs.H"
69 
70 U = HbyA - (invA & (betav*fvc::grad(p)));
71 U.correctBoundaryConditions();
72 K = 0.5*magSqr(U);
73 
74 if (thermo.dpdt())
75 {
76  dpdt = fvc::ddt(p);
77 }
volScalarField & dpdt
Solve the continuity for density.
volSymmTensorField invA(inv(I *UEqn.A()+drag->Dcu()))
phi
Definition: pEqn.H:20
CGAL::Exact_predicates_exact_constructions_kernel K
dimensioned< scalar > magSqr(const dimensioned< Type > &)
tmp< GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > > ddtCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
Definition: fvcDdt.C:155
const volScalarField & betav
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcLaplacian.C:45
tmp< surfaceScalarField > interpolate(const RhoType &rho)
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
dynamicFvMesh & mesh
const dictionary & pimple
p
Definition: pEqn.H:59
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
fvVectorMatrix UEqn(fvm::ddt(rho, U)+fvm::div(phi, U)+turbulence->divDevRhoReff(U)==fvOptions(rho, U))
surfaceScalarField phid("phid", fvc::interpolate(psi)*( (mesh.Sf()&fvc::interpolate(HbyA)) +rhorAUf *fvc::ddtCorr(rho, U, phi)/fvc::interpolate(rho) ))
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const volScalarField & psi
Definition: createFields.H:24
phiHbyA
Definition: pEqn.H:21
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
volScalarField rAU(1.0/UEqn.A())
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcGrad.C:52
rho
Definition: pEqn.H:1
psiReactionThermo & thermo
Definition: createFields.H:32
U
Definition: pEqn.H:82
HbyA
Definition: pEqn.H:7