Removed unneeded lib dependency from mdInitialise
[foam-extend-3.2.git] / applications / solvers / compressible / rhoPorousMRFPimpleFoam / UEqn.H
blobea80c2e7deca5054c921bc45c0d782ecad9a57dc
1 // Solve the Momentum equation
3 tmp<fvVectorMatrix> UEqn
5     pZones.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 mrfZones.addCoriolis(rho, UEqn());
27 pZones.addResistance(UEqn());
29 volScalarField rUA = 1.0/UEqn().A();
31 if (momentumPredictor)
33     if (oCorr == nOuterCorr-1)
34     {
35         solve(UEqn() == -fvc::grad(p), mesh.solutionDict().solver("UFinal"));
36     }
37     else
38     {
39         solve(UEqn() == -fvc::grad(p));
40     }
42 else
44     U = rUA*(UEqn().H() - fvc::grad(p));
45     U.correctBoundaryConditions();