Loading...
Searching...
No Matches
pEqn.H
Go to the documentation of this file.
1volScalarField rAU("rAU", 1.0/UEqn.A());
2
3surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU));
4volVectorField H("H", UEqn.H());
5
6volVectorField HbyA("HbyA", U);
8
9if (pimple.nCorrPISO() <= 1)
10{
11 tUEqn.clear();
12}
13
14phiHbyA = fvc::flux(HbyA);
15
16MRF.makeRelative(phiHbyA);
17
19{
20 fvc::makeRelative(phiHbyA, U);
21 oversetAdjustPhi(phiHbyA, U, zoneIdMass);
22 fvc::makeAbsolute(phiHbyA, U);
23}
24
25
26while (pimple.correctNonOrthogonal())
27{
28 fvScalarMatrix pEqn
29 (
30 fvm::laplacian(rAUf, p) == fvc::div(phiHbyA)
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 {
53 oversetPatchPhiErr(pEqn, phiHbyA);
54 }
55}
56
57// Excludes error in interpolated/hole cells
58#include "continuityErrs.H"
59
60
61{
62 Uf = fvc::interpolate(U);
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
68fvc::makeRelative(phi, U);
69phi *= faceMask;
label n
Calculates and prints the continuity errors.
fv::options & fvOptions
const scalar pRefValue
const label pRefCell
IOMRFZoneList & MRF
pimpleControl & pimple
U
Definition pEqn.H:72
volScalarField & p
tmp< fvVectorMatrix > tUEqn(fvm::ddt(rho, U)+fvm::div(phi, U)+MRF.DDt(rho, U)+turbulence->divDevRhoReff(U)==fvOptions(rho, U))
fvVectorMatrix & UEqn
Definition UEqn.H:13
phiHbyA
Definition pcEqn.H:73
HbyA
Definition pcEqn.H:74
dynamicFvMesh & mesh
volScalarField H(IOobject("H", runTime.timeName(), mesh.thisDb(), IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimLength, Zero))
autoPtr< surfaceVectorField > Uf
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
volVectorField H("H", UEqn.H())
tmp< volScalarField > rAU
oversetPatchErrOutput
label zoneIdMass
faceMask
Definition setCellMask.H:43