BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / solvers / incompressible / pimpleFoam / pEqn.H
blobda9b7581bfcf914064c97469b3ac704b3bc191cc
1 U = rAU*UEqn().H();
3 if (pimple.nCorr() <= 1)
5     UEqn.clear();
8 phi = (fvc::interpolate(U) & mesh.Sf())
9     + fvc::ddtPhiCorr(rAU, U, phi);
11 adjustPhi(phi, U, p);
13 // Non-orthogonal pressure corrector loop
14 for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
16     // Pressure corrector
17     fvScalarMatrix pEqn
18     (
19         fvm::laplacian(rAU, p) == fvc::div(phi)
20     );
22     pEqn.setReference(pRefCell, pRefValue);
24     pEqn.solve
25     (
26         mesh.solver(p.select(pimple.finalInnerIter(corr, nonOrth)))
27     );
29     if (nonOrth == pimple.nNonOrthCorr())
30     {
31         phi -= pEqn.flux();
32     }
35 #include "continuityErrs.H"
37 // Explicitly relax pressure for momentum corrector
38 p.relax();
40 U -= rAU*fvc::grad(p);
41 U.correctBoundaryConditions();