2 volScalarField rAU(1.0/UEqn.A());
3 surfaceScalarField rAUf(fvc::interpolate(rAU));
5 tmp<fvScalarMatrix> p_rghEqnComp;
7 if (pimple.transonic())
12 + fvm::div(phi, p_rgh)
13 - fvm::Sp(fvc::div(phi), p_rgh)
21 + fvc::div(phi, p_rgh)
22 - fvc::Sp(fvc::div(phi), p_rgh)
29 surfaceScalarField phiU
32 (fvc::interpolate(U) & mesh.Sf())
33 + fvc::ddtPhiCorr(rAU, rho, U, phi)
38 fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)
39 - ghf*fvc::snGrad(rho)
42 for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
44 fvScalarMatrix p_rghEqnIncomp
47 - fvm::laplacian(rAUf, p_rgh)
53 max(alpha1, scalar(0))*(psi1/rho1)
54 + max(alpha2, scalar(0))*(psi2/rho2)
58 mesh.solver(p_rgh.select(pimple.finalInnerIter(corr, nonOrth)))
61 if (nonOrth == pimple.nNonOrthCorr())
64 (pos(alpha2)*(psi2/rho2) - pos(alpha1)*(psi1/rho1))
65 *(p_rghEqnComp & p_rgh);
66 phi += p_rghEqnIncomp.flux();
70 U += rAU*fvc::reconstruct((phi - phiU)/rAUf);
71 U.correctBoundaryConditions();
75 (p_rgh + gh*(alpha1*rho10 + alpha2*rho20))
76 /(1.0 - gh*(alpha1*psi1 + alpha2*psi2)),
80 rho1 = rho10 + psi1*p;
81 rho2 = rho20 + psi2*p;
83 Info<< "max(U) " << max(mag(U)).value() << endl;
84 Info<< "min(p_rgh) " << min(p_rgh).value() << endl;