initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / solvers / heatTransfer / buoyantPisoFoam / UEqn.H
blobd4878d063dab6ee8ed4243c61d529832d3dd9c6a
1     // Solve the Momentum equation
3     fvVectorMatrix UEqn
4     (
5         fvm::ddt(rho, U)
6       + fvm::div(phi, U)
7       + turbulence->divDevRhoReff(U)
8     );
10     UEqn.relax();
12     if (momentumPredictor)
13     {
14         solve
15         (
16             UEqn
17          ==
18             fvc::reconstruct
19             (
20                 fvc::interpolate(rho)*(g & mesh.Sf())
21               - fvc::snGrad(p)*mesh.magSf()
22             )
23         );
24     }