Removed unnecessary return statement
[foam-extend-3.2.git] / applications / solvers / compressible / sonicDyMFoam / UEqn.H
blob377aa0a13b5daf985451412d95316f9cad84b341
1     fvVectorMatrix UEqn
2     (
3         fvm::ddt(rho, U)
4       + fvm::div(phi, U)
5       + turbulence->divDevRhoReff(U)
6     );
8     if (oCorr == nOuterCorr - 1)
9     {
10         if (mesh.solutionDict().relax("UFinal"))
11         {
12             UEqn.relax(mesh.solutionDict().relaxationFactor("UFinal"));
13         }
14         else
15         {
16             UEqn.relax(1);
17         }
18     }
19     else
20     {
21         UEqn.relax();
22     }
24     solve(UEqn == -fvc::grad(p));