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);
pRefCell
const label pRefCell
Definition: setRegionFluidFields.H:27
Foam::fvc::grad
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcGrad.C:52
p
p
Definition: pEqn.H:62
Foam::MULES::interpolate
tmp< surfaceScalarField > interpolate(const RhoType &rho)
Definition: IMULESTemplates.C:40
Foam::fvc::div
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
phi
phi
Definition: pEqn.H:20
U
U
Definition: pEqn.H:46
Foam::fvc::laplacian
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcLaplacian.C:45
Foam::fvScalarMatrix
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
Foam::fvc::ddtCorr
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
UEqn
tmp< fvVectorMatrix > UEqn(fvm::div(phi, U)+MRF.DDt(U)+turbulence->divDevReff(U)==fvOptions(U))
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
MRF
IOMRFZoneList & MRF
Definition: setRegionFluidFields.H:15
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::volVectorField
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
rAU
volScalarField rAU("rAU", 1.0/UEqn().A())
adjustPhi
adjustPhi(phiHbyA, U, p)
HbyA
HbyA
Definition: pEqn.H:4
Foam::surfaceScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Definition: surfaceFieldsFwd.H:52
phiHbyA
phiHbyA
Definition: pEqn.H:21
pRefValue
const scalar pRefValue
Definition: setRegionFluidFields.H:28
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:16