pEqn.H
Go to the documentation of this file.
1 volScalarField rAU(1.0/UEqn.A());
2 volVectorField HbyA("HbyA", U);
3 HbyA = rAU*UEqn.H();
5 (
6  "phiHbyA",
7  (fvc::interpolate(HbyA) & mesh.Sf())
9 );
10 
11 MRF.makeRelative(phiHbyA);
12 
13 adjustPhi(phiHbyA, U, p);
14 
15 // Non-orthogonal pressure corrector loop
16 while (piso.correctNonOrthogonal())
17 {
18  // Pressure corrector
19 
20  fvScalarMatrix pEqn
21  (
23  );
24 
25  pEqn.setReference(pRefCell, pRefValue);
26 
27  pEqn.solve(mesh.solver(p.select(piso.finalInnerIter())));
28 
29  if (piso.finalNonOrthogonalIter())
30  {
31  phi = phiHbyA - pEqn.flux();
32  }
33 }
34 
35 #include "continuityErrs.H"
36 
38 U.correctBoundaryConditions();
39 fvOptions.correct(U);
phi
Definition: pEqn.H:20
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
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)
dynamicFvMesh & mesh
p
Definition: pEqn.H:59
fv::IOoptionList & fvOptions
const scalar pRefValue
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
IOMRFZoneList & MRF
fvVectorMatrix UEqn(fvm::ddt(rho, U)+fvm::div(phi, U)+turbulence->divDevRhoReff(U)==fvOptions(rho, U))
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
phiHbyA
Definition: pEqn.H:21
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
adjustPhi(phiHbyA, U, p_rgh)
volScalarField rAU(1.0/UEqn.A())
const label pRefCell
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
U
Definition: pEqn.H:82
HbyA
Definition: pEqn.H:7