3 // Add gravity term, re-using the momentum equation
4 UEqn += interface.sigmaK()*fvc::grad(alpha1) - rho*g;
6 volScalarField rUAPres = 1.0/UEqn.A();
8 // Pick up velocity boundary conditions
14 Upres = rUAPres*UEqn.H();
16 surfaceScalarField phiPres = fvc::interpolate(Upres) & mesh.Sf();
18 adjustPhi(phiPres, Upres, p);
22 for(int nonOrth = 0; nonOrth <= nNonOrthCorr; nonOrth++)
26 fvm::laplacian(rUAPres, p) == fvc::div(phiPres)
29 pEqn.setReference(pRefCell, pRefValue);
30 pEqn.solve(mesh.solver(pd.name()));
33 Info << "Relaxation: p = " << mesh.relaxationFactor(p.name()) << endl;