4 volScalarField rAU = 1.0/UEqn.A();
9 // ddtPhiCorr not well defined for cases with porosity
10 phi = fvc::interpolate(rho)*(fvc::interpolate(U) & mesh.Sf());
17 (fvc::interpolate(U) & mesh.Sf())
18 + fvc::ddtPhiCorr(rAU, rho, U, phi)
23 fvScalarMatrix pDDtEqn
25 fvc::ddt(rho) + psi*correction(fvm::ddt(p))
29 // Thermodynamic density needs to be updated by psi*d(p) after the
30 // pressure solution - done in 2 parts. Part 1:
31 thermo.rho() -= psi*p;
33 for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
37 pDDtEqn - fvm::laplacian(rho*rAU, p)
43 if (corr == nCorr-1 && nonOrth == nNonOrthCorr)
45 pEqn.solve(mesh.solver("pFinal"));
52 if (nonOrth == nNonOrthCorr)
58 // Second part of thermodynamic density update
59 thermo.rho() += psi*p;
63 #include "compressibleContinuityErrs.H"
65 U -= rAU*fvc::grad(p);
66 U.correctBoundaryConditions();