Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / compressible / steadyCompressibleSRFFoam / UEqn.H
blob334595328b649d750e1b044fda1a32821708e2cb
1     // Solve the momentum equation
2     Urel.storePrevIter();
4     fvVectorMatrix UrelEqn
5     (
6         fvm::ddt(rho, Urel)
7       + fvm::div(phi, Urel)
8       + turbulence->divDevRhoReff(Urel)
9       + rho*SRF->Su()
10     );
12     UrelEqn.relax();
14     eqnResidual = solve
15     (
16         UrelEqn == -fvc::grad(p)
17     ).initialResidual();
19     maxResidual = max(eqnResidual, maxResidual);