3 volScalarField rUA = 1.0/UEqn().A();
13 surfaceScalarField phid
18 (fvc::interpolate(U) & mesh.Sf())
19 + fvc::ddtPhiCorr(rUA, rho, U, phi)
23 for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
29 - fvm::laplacian(rho*rUA, p)
36 && nonOrth == nNonOrthCorr
39 pEqn.solve(mesh.solutionDict().solver("pFinal"));
46 if (nonOrth == nNonOrthCorr)
55 fvc::interpolate(rho)*
57 (fvc::interpolate(U) & mesh.Sf())
58 //+ fvc::ddtPhiCorr(rUA, rho, U, phi)
61 for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
68 - fvm::laplacian(rho*rUA, p)
75 && nonOrth == nNonOrthCorr
78 pEqn.solve(mesh.solutionDict().solver("pFinal"));
85 if (nonOrth == nNonOrthCorr)
93 #include "compressibleContinuityErrs.H"
95 //if (oCorr != nOuterCorr-1)
97 // Explicitly relax pressure for momentum corrector
102 Info<< "rho max/min : " << max(rho).value()
103 << " " << min(rho).value() << endl;
106 U -= rUA*fvc::grad(p);
107 U.correctBoundaryConditions();
109 DpDt = fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);
113 // For closed-volume cases adjust the pressure and density levels
114 // to obey overall mass continuity
118 p += (initialMass - fvc::domainIntegrate(psi*p))
119 /fvc::domainIntegrate(psi);