2 volScalarField rUA = 1.0/UEqn.A();
3 surfaceScalarField rUAf = fvc::interpolate(rUA);
7 surfaceScalarField phiU
10 (fvc::interpolate(U) & mesh.Sf())
11 + fvc::ddtPhiCorr(rUA, rho, U, phi)
14 adjustPhi(phiU, U, pd);
18 fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)
19 - ghf*fvc::snGrad(rho)
23 Pair<tmp<volScalarField> > vDotP = twoPhaseProperties->vDotP();
24 const volScalarField& vDotcP = vDotP[0]();
25 const volScalarField& vDotvP = vDotP[1]();
27 for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
31 fvc::div(phi) - fvm::laplacian(rUAf, pd)
32 + (vDotvP - vDotcP)*(rho*gh - pSat) + fvm::Sp(vDotvP - vDotcP, pd)
35 pdEqn.setReference(pdRefCell, pdRefValue);
37 if (corr == nCorr - 1 && nonOrth == nNonOrthCorr)
39 pdEqn.solve(mesh.solutionDict().solver(pd.name() + "Final"));
43 pdEqn.solve(mesh.solutionDict().solver(pd.name()));
46 if (nonOrth == nNonOrthCorr)
54 U += rUA*fvc::reconstruct((phi - phiU)/rUAf);
55 U.correctBoundaryConditions();