pEqn.H
Go to the documentation of this file.
1 volScalarField rAU(1.0/UEqn.A());
4 (
5  "phiHbyA",
7  + MRF.zeroFilter(fvc::interpolate(rAU)*fvc::ddtCorr(U, phi))
8 );
9 
10 MRF.makeRelative(phiHbyA);
11 
12 adjustPhi(phiHbyA, U, p);
13 
14 // Update the pressure BCs to ensure flux consistency
16 
17 // Non-orthogonal pressure corrector loop
18 while (piso.correctNonOrthogonal())
19 {
20  // Pressure corrector
21 
22  fvScalarMatrix pEqn
23  (
25  );
26 
27  pEqn.setReference(pRefCell, pRefValue);
28 
29  pEqn.solve(mesh.solver(p.select(piso.finalInnerIter())));
30 
31  if (piso.finalNonOrthogonalIter())
32  {
33  phi = phiHbyA - pEqn.flux();
34  }
35 }
36 
37 #include "continuityErrs.H"
38 
40 U.correctBoundaryConditions();
41 fvOptions.correct(U);
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:37
p
Definition: pEqn.H:50
volScalarField rAU(1.0/UEqn.A())
phiHbyA
Definition: pEqn.H:20
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
tmp< GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > > ddtCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
Definition: fvcDdt.C:165
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facDiv.C:43
pisoControl piso(mesh)
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:82
fv::options & fvOptions
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:81
dynamicFvMesh & mesh
IOMRFZoneList & MRF
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
Definition: facLaplacian.C:40
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
Definition: constrainHbyA.C:28
HbyA
Definition: pEqn.H:4
adjustPhi(phiHbyA, U, p_rgh)
const scalar pRefValue
const label pRefCell
U
Definition: pEqn.H:72
mesh interpolate(rAU)
fvVectorMatrix & UEqn
Definition: UEqn.H:13
constrainPressure(p_rgh, rho, U, phiHbyA, rhorAUf, MRF)
phi
Definition: pEqn.H:18
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facGrad.C:51