Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / heatTransfer / buoyantSimpleFoam / UEqn.H
blob0170d6e38446f8831bb4c170c7190a1742708e10
1     // Solve the Momentum equation
3     tmp<fvVectorMatrix> UEqn
4     (
5         fvm::div(phi, U)
6       + turbulence->divDevRhoReff(U)
7     );
9     UEqn().relax();
11     eqnResidual = solve
12     (
13         UEqn()
14      ==
15         fvc::reconstruct
16         (
17             fvc::interpolate(rho)*(g & mesh.Sf())
18           - fvc::snGrad(p)*mesh.magSf()
19         )
20     ).initialResidual();
22     maxResidual = max(eqnResidual, maxResidual);