2 bool closedVolume = p.needReference();
6 volScalarField rUA = 1.0/UEqn().A();
7 surfaceScalarField rhorUAf("(rho*(1|A(U)))", fvc::interpolate(rho*rUA));
11 surfaceScalarField phiU
15 (fvc::interpolate(U) & mesh.Sf())
16 + fvc::ddtPhiCorr(rUA, rho, U, phi)
20 phi = phiU + fvc::interpolate(rho)*(g & mesh.Sf())*rhorUAf;
22 for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
28 - fvm::laplacian(rhorUAf, p)
35 && nonOrth == nNonOrthCorr
38 pEqn.solve(mesh.solver(p.name() + "Final"));
42 pEqn.solve(mesh.solver(p.name()));
45 if (nonOrth == nNonOrthCorr)
51 // Correct velocity field
52 U += rUA*fvc::reconstruct((phi - phiU)/rhorUAf);
53 U.correctBoundaryConditions();
55 // Update pressure substantive derivative
56 DpDt = fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);
61 // Update continuity errors
62 #include "compressibleContinuityErrors.H"
64 // For closed-volume cases adjust the pressure and density levels
65 // to obey overall mass continuity
68 p += (massIni - fvc::domainIntegrate(psi*p))
69 /fvc::domainIntegrate(psi);
73 // Update thermal conductivity
74 K = thermoFluid[i].Cp()*turb.alphaEff();