Initial release of the new fireFoam solver and ancillary libraries.
[OpenFOAM-1.6.x.git] / applications / solvers / combustion / fireFoam / UEqn.H
blob3b61f2c7b95cfd705eb219d208fcd55f5dc02185
1 fvVectorMatrix UEqn
3     fvm::ddt(rho, U)
4   + fvm::div(phi, U)
5   + turbulence->divDevRhoReff(U)
6 );
8 UEqn.relax();
10 if (oCorr == nOuterCorr - 1)
12     solve
13     (
14         UEqn
15       ==
16         fvc::reconstruct
17         (
18             fvc::interpolate(rho)*(g & mesh.Sf())
19           - fvc::snGrad(p)*mesh.magSf()
20         ),
21         mesh.solver("UFinal")
22     );
24 else
26     solve
27     (
28         UEqn
29       ==
30         fvc::reconstruct
31         (
32             fvc::interpolate(rho)*(g & mesh.Sf())
33           - fvc::snGrad(p)*mesh.magSf()
34         )
35     );