pEqn.H
Go to the documentation of this file.
1 volScalarField rAU("rAU", 1.0/UEqn.A());
2 
4 volVectorField H("H", UEqn.H());
5 
6 volVectorField HbyA("HbyA", U);
8 
9 if (pimple.nCorrPISO() <= 1)
10 {
11  tUEqn.clear();
12 }
13 
15 
16 MRF.makeRelative(phiHbyA);
17 
19 {
23 }
24 
25 
26 while (pimple.correctNonOrthogonal())
27 {
28  fvScalarMatrix pEqn
29  (
31  );
32 
33  pEqn.setReference(pRefCell, pRefValue);
34 
35  pEqn.solve(p.select(pimple.finalInnerIter()));
36 
37  if (pimple.finalNonOrthogonalIter())
38  {
39  phi = phiHbyA - pEqn.flux();
40  pEqn.relax();
41  U =
42  cellMask*
43  (
44  HbyA
45  - rAU*fvc::reconstruct((pEqn.flux())/rAUf)
46  );
47  U.correctBoundaryConditions();
48  fvOptions.correct(U);
49  }
50 
52  {
54  }
55 }
56 
57 // Excludes error in interpolated/hole cells
58 #include "continuityErrs.H"
59 
60 
61 {
63  surfaceVectorField n(mesh.Sf()/mesh.magSf());
64  Uf += n*(phi/mesh.magSf() - (n & Uf));
65 }
66 
67 // Make the fluxes relative to the mesh motion
69 phi *= faceMask;
volVectorField H("H", UEqn.H())
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.
Calculates and prints the continuity errors.
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facDiv.C:43
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
tmp< fvVectorMatrix > tUEqn(fvm::ddt(rho, U)+fvm::div(phi, U)+MRF.DDt(rho, U)+turbulence->divDevRhoReff(U)==fvOptions(rho, U))
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:82
oversetPatchErrOutput
fv::options & fvOptions
label zoneIdMass
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
bool oversetAdjustPhi(surfaceScalarField &phi, const volVectorField &U, const label zoneId=-1)
Adjust the balance of fluxes to obey continuity.
HbyA
Definition: pEqn.H:4
faceMask
Definition: setCellMask.H:43
void oversetPatchPhiErr(const fvScalarMatrix &m, const surfaceScalarField &phi)
Prints out sum of m.flux and phi over the fringe faces.
pimpleControl & pimple
const scalar pRefValue
const label pRefCell
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
U
Definition: pEqn.H:72
mesh interpolate(rAU)
fvVectorMatrix & UEqn
Definition: UEqn.H:13
void makeAbsolute(surfaceScalarField &phi, const volVectorField &U)
Make the given flux absolute.
Definition: fvcMeshPhi.C:109
surfaceVectorField n(mesh.Sf()/mesh.magSf())
phi
Definition: pEqn.H:18
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
MRF makeRelative(fvc::interpolate(rho), phiHbyA)
Uf
Definition: pEqn.H:64