1 if (pressureImplicitPorosity)
11 phi = fvc::interpolate(U) & mesh.Sf();
14 for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
16 tmp<fvScalarMatrix> tpEqn;
18 if (pressureImplicitPorosity)
20 tpEqn = (fvm::laplacian(trTU(), p) == fvc::div(phi));
24 tpEqn = (fvm::laplacian(trAU(), p) == fvc::div(phi));
27 tpEqn().setReference(pRefCell, pRefValue);
28 // retain the residual from the first iteration
31 eqnResidual = tpEqn().solve().initialResidual();
32 maxResidual = max(eqnResidual, maxResidual);
39 if (nonOrth == nNonOrthCorr)
41 phi -= tpEqn().flux();
45 #include "continuityErrs.H"
47 // Explicitly relax pressure for momentum corrector
50 if (pressureImplicitPorosity)
52 U -= trTU()&fvc::grad(p);
56 U -= trAU()*fvc::grad(p);
59 U.correctBoundaryConditions();