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 (pimple.transonic())
13 surfaceScalarField phiv
15 (fvc::interpolate(U) & mesh.Sf())
16 + fvc::ddtPhiCorr(rAU, rho, U, phi)
19 phi = fvc::interpolate(rho)*phiv;
21 surfaceScalarField phid
24 fvc::interpolate(thermo.psi())*phiv
27 fvScalarMatrix pDDtEqn
29 fvc::ddt(rho) + fvc::div(phi)
30 + correction(fvm::ddt(psi, p) + fvm::div(phid, p))
33 for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
38 - fvm::laplacian(rho*rAU, p)
43 mesh.solver(p.select(pimple.finalInnerIter(corr, nonOrth)))
46 if (nonOrth == pimple.nNonOrthCorr())
57 (fvc::interpolate(U) & mesh.Sf())
58 + fvc::ddtPhiCorr(rAU, rho, U, phi)
61 fvScalarMatrix pDDtEqn
63 fvc::ddt(rho) + psi*correction(fvm::ddt(p))
67 for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
72 - fvm::laplacian(rho*rAU, p)
77 mesh.solver(p.select(pimple.finalInnerIter(corr, nonOrth)))
80 if (nonOrth == pimple.nNonOrthCorr())
87 // Second part of thermodynamic density update
88 thermo.rho() += psi*p;
91 #include "compressibleContinuityErrs.H"
93 U -= rAU*fvc::grad(p);
94 U.correctBoundaryConditions();
96 DpDt = fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);