BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / solvers / incompressible / pimpleFoam / SRFPimpleFoam / pEqn.H
blobe4f9190cc53f260b51cf3475e5e35f7ffef7a13a
1 volScalarField rAUrel(1.0/UrelEqn().A());
2 Urel = rAUrel*UrelEqn().H();
4 if (pimple.nCorr() <= 1)
6     UrelEqn.clear();
9 phi = (fvc::interpolate(Urel) & mesh.Sf())
10     + fvc::ddtPhiCorr(rAUrel, Urel, phi);
12 adjustPhi(phi, Urel, p);
14 // Non-orthogonal pressure corrector loop
15 for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
17     // Pressure corrector
18     fvScalarMatrix pEqn
19     (
20         fvm::laplacian(rAUrel, p) == fvc::div(phi)
21     );
23     pEqn.setReference(pRefCell, pRefValue);
25     pEqn.solve
26     (
27         mesh.solver(p.select(pimple.finalInnerIter(corr, nonOrth)))
28     );
30     if (nonOrth == pimple.nNonOrthCorr())
31     {
32         phi -= pEqn.flux();
33     }
36 #include "continuityErrs.H"
38 p.relax();
40 // Momentum corrector
41 Urel -= rAUrel*fvc::grad(p);
42 Urel.correctBoundaryConditions();