4 // Thermodynamic density needs to be updated by psi*d(p) after the
5 // pressure solution - done in 2 parts. Part 1:
8 volScalarField rAU = 1.0/UEqn.A();
11 if (pZones.size() > 0)
13 // ddtPhiCorr not well defined for cases with porosity
14 phi = fvc::interpolate(rho)*(fvc::interpolate(U) & mesh.Sf());
21 (fvc::interpolate(U) & mesh.Sf())
22 + fvc::ddtPhiCorr(rAU, rho, U, phi)
26 for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
30 fvc::ddt(rho) + psi*correction(fvm::ddt(p))
32 - fvm::laplacian(rho*rAU, p)
35 + pointMassSources.Su()
38 if (corr == nCorr-1 && nonOrth == nNonOrthCorr)
40 pEqn.solve(mesh.solver("pFinal"));
47 if (nonOrth == nNonOrthCorr)
53 // Second part of thermodynamic density update
54 thermo.rho() += psi*p;
57 #include "compressibleContinuityErrs.H"
59 U -= rAU*fvc::grad(p);
60 U.correctBoundaryConditions();