Changed from solving for p to solving for pmh (static pressure minus hydrostatic...
[OpenFOAM-1.6.x.git] / applications / solvers / multiphase / settlingFoam / UEqn.H
blobe903434a93721448a0013ee07cb96364d016cfd4
1     // Solve the Momentum equation
3     fvVectorMatrix UEqn
4     (
5         fvm::ddt(rho, U)
6       + fvm::div(phi, U)
7       + fvc::div
8         (
9             (Alpha/(scalar(1.001) - Alpha))*(sqr(rhoc)/rho)*Vdj*Vdj,
10             "div(phiVdj,Vdj)"
11         )
12       - fvm::laplacian(mu, U, "laplacian(muEff,U)")
13     );
15     UEqn.relax();
17     if (momentumPredictor)
18     {
19         solve
20         (
21             UEqn
22           ==
23             fvc::reconstruct
24             (
25                 //fvc::interpolate(rho)*(g & mesh.Sf())
26                 //- fvc::snGrad(p)*mesh.magSf()
27                 (- ghf*fvc::snGrad(rho) - fvc::snGrad(pmh))*mesh.magSf()
28             )
29         );
30     }