2 volScalarField rUA = 1.0/UEqn.A();
3 surfaceScalarField rUAf = fvc::interpolate(rUA);
5 tmp<fvScalarMatrix> pEqnComp;
10 (fvm::ddt(p) + fvm::div(phi, p) - fvm::Sp(fvc::div(phi), p));
15 (fvm::ddt(p) + fvc::div(phi, p) - fvc::Sp(fvc::div(phi), p));
21 surfaceScalarField phiU
24 (fvc::interpolate(U) & mesh.Sf()) + fvc::ddtPhiCorr(rUA, rho, U, phi)
29 fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)*mesh.magSf()
30 + fvc::interpolate(rho)*(g & mesh.Sf())
33 for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
35 fvScalarMatrix pEqnIncomp
38 - fvm::laplacian(rUAf, p)
44 max(alpha1, scalar(0))*(psi1/rho1)
45 + max(alpha2, scalar(0))*(psi2/rho2)
51 if (nonOrth == nNonOrthCorr)
54 (pos(alpha2)*(psi2/rho2) - pos(alpha1)*(psi1/rho1))
56 phi += pEqnIncomp.flux();
60 U += rUA*fvc::reconstruct((phi - phiU)/rUAf);
61 U.correctBoundaryConditions();
65 rho1 = rho10 + psi1*p;
66 rho2 = rho20 + psi2*p;
68 Info<< "max(U) " << max(mag(U)).value() << endl;
69 Info<< "min(p) " << min(p).value() << endl;