Removed unneeded lib dependency from mdInitialise
[foam-extend-3.2.git] / applications / solvers / compressible / rhoPimpleFoam / UEqn.H
blob3925650ec3db499857a7e606951be43460897368
1 // Solve the Momentum equation
3 tmp<fvVectorMatrix> UEqn
5     fvm::ddt(rho, U)
6   + fvm::div(phi, U)
7   + turbulence->divDevRhoReff(U)
8 );
10 if (oCorr == nOuterCorr - 1)
12     if (mesh.solutionDict().relax("UFinal"))
13     {
14         UEqn().relax(mesh.solutionDict().relaxationFactor("UFinal"));
15     }
16     else
17     {
18         UEqn().relax(1);
19     }
21 else
23     UEqn().relax();
26 volScalarField rUA = 1.0/UEqn().A();
28 if (momentumPredictor)
30     if (oCorr == nOuterCorr-1)
31     {
32         solve(UEqn() == -fvc::grad(p), mesh.solutionDict().solver("UFinal"));
33     }
34     else
35     {
36         solve(UEqn() == -fvc::grad(p));
37     }
39 else
41     U = rUA*(UEqn().H() - fvc::grad(p));
42     U.correctBoundaryConditions();