6 for (int nonOrth = 0; nonOrth <= nNonOrthCorr; nonOrth++)
8 // Calculate phi for boundary conditions
11 (fvc::interpolate(U) & mesh.Sf())
12 - fvc::meshPhi(rho, U)
15 surfaceScalarField phid2 = rhoReff/rhof*phi;
17 surfaceScalarField phid("phid", psisf/rhof*phi);
19 // Store pressure for under-relaxation
22 volScalarField divPhid
32 // Convective flux relaxation terms
33 + fvm::SuSp(-divPhid, p)
36 - fvm::laplacian(rho*rUA, p)
41 // oCorr == nOuterCorr - 1
43 && nonOrth == nNonOrthCorr
48 mesh.solutionDict().solver(p.name() + "Final")
53 pEqn.solve(mesh.solutionDict().solver(p.name()));
57 if (nonOrth == nNonOrthCorr)
59 phi = phid2 + pEqn.flux();
64 if (min(p) < pMin || max(p) > pMax)
68 p.correctBoundaryConditions();
75 # include "compressibleContinuityErrs.H"
77 U -= fvc::grad(p)/UEqn.A();
78 U.correctBoundaryConditions();