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 fvScalarMatrix pDDtEqn
28 fvc::ddt(rho) + psi*correction(fvm::ddt(p))
35 for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
40 - fvm::laplacian(rho*rAU, p)
45 mesh.solver(p.select(pimple.finalInnerIter(corr, nonOrth)))
48 if (nonOrth == pimple.nNonOrthCorr())
56 // Second part of thermodynamic density update
57 thermo.rho() += psi*p;
59 #include "rhoEqn.H" // NOTE: flux and time scales now inconsistent
60 #include "compressibleContinuityErrs.H"
62 U -= rAU*fvc::grad(p);
63 U.correctBoundaryConditions();
66 rho = max(rho, rhoMin);
67 rho = min(rho, rhoMax);
69 #include "setPressureWork.H"
71 Info<< "p min/max = " << min(p).value() << ", " << max(p).value() << endl;