3 volScalarField rUA = 1.0/UEqn().A();
13 surfaceScalarField phid
18 (fvc::interpolate(U) & mesh.Sf())
19 + fvc::ddtPhiCorr(rUA, rho, U, phi)
22 mrfZones.relativeFlux(fvc::interpolate(psi), phid);
24 for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
30 - fvm::laplacian(rho*rUA, p)
37 && nonOrth == nNonOrthCorr
40 pEqn.solve(mesh.solutionDict().solver("pFinal"));
47 if (nonOrth == nNonOrthCorr)
56 fvc::interpolate(rho)*
58 (fvc::interpolate(U) & mesh.Sf())
59 //+ fvc::ddtPhiCorr(rUA, rho, U, phi)
61 mrfZones.relativeFlux(fvc::interpolate(rho), phi);
63 for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
70 - fvm::laplacian(rho*rUA, p)
77 && nonOrth == nNonOrthCorr
80 pEqn.solve(mesh.solutionDict().solver("pFinal"));
87 if (nonOrth == nNonOrthCorr)
95 #include "compressibleContinuityErrs.H"
97 //if (oCorr != nOuterCorr-1)
99 // Explicitly relax pressure for momentum corrector
104 Info<< "rho max/min : " << max(rho).value()
105 << " " << min(rho).value() << endl;
108 U -= rUA*fvc::grad(p);
109 U.correctBoundaryConditions();
111 DpDt = fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);
115 // For closed-volume cases adjust the pressure and density levels
116 // to obey overall mass continuity
120 p += (initialMass - fvc::domainIntegrate(psi*p))
121 /fvc::domainIntegrate(psi);