ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / applications / solvers / incompressible / pimpleFoam / pimpleDyMFoam / pEqn.H
blob7e84ef50fe6d24cffbb957a59986051a09822bb5
1 U = rAU*UEqn().H();
3 if (pimple.nCorr() <= 1)
5     UEqn.clear();
8 phi = (fvc::interpolate(U) & mesh.Sf());
10 if (p.needReference())
12     fvc::makeRelative(phi, U);
13     adjustPhi(phi, U, p);
14     fvc::makeAbsolute(phi, U);
17 for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
19     fvScalarMatrix pEqn
20     (
21         fvm::laplacian(rAU, p) == fvc::div(phi)
22     );
24     pEqn.setReference(pRefCell, pRefValue);
26     pEqn.solve
27     (
28         mesh.solver(p.select(pimple.finalInnerIter(corr, nonOrth)))
29     );
31     if (nonOrth == pimple.nNonOrthCorr())
32     {
33         phi -= pEqn.flux();
34     }
37 #include "continuityErrs.H"
39 // Explicitly relax pressure for momentum corrector
40 p.relax();
42 // Make the fluxes relative to the mesh motion
43 fvc::makeRelative(phi, U);
45 U -= rAU*fvc::grad(p);
46 U.correctBoundaryConditions();