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())
29 fvc::interpolate(interface.sigmaK())*
30 fvc::snGrad(alpha1)*mesh.magSf()
31 + fvc::interpolate(rho)*(g & mesh.Sf())
34 for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
36 fvScalarMatrix pEqnIncomp
39 - fvm::laplacian(rUAf, p)
46 && nonOrth == nNonOrthCorr
52 max(alpha1, scalar(0))*(psi1/rho1)
53 + max(alpha2, scalar(0))*(psi2/rho2)
57 mesh.solutionDict().solver(p.name() + "Final")
65 max(alpha1, scalar(0))*(psi1/rho1)
66 + max(alpha2, scalar(0))*(psi2/rho2)
73 if (nonOrth == nNonOrthCorr)
76 (pos(alpha2)*(psi2/rho2) - pos(alpha1)*(psi1/rho1))
78 phi += pEqnIncomp.flux();
82 U += rUA*fvc::reconstruct((phi - phiU)/rUAf);
83 U.correctBoundaryConditions();
87 rho1 = rho10 + psi1*p;
88 rho2 = rho20 + psi2*p;
90 Info<< "max(U) " << max(mag(U)).value() << endl;
91 Info<< "min(p) " << min(p).value() << endl;
93 // Make the fluxes relative to the mesh motion
94 fvc::makeRelative(phi, U);