ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / applications / solvers / compressible / rhoPimpleFoam / UEqn.H
blob03bc6e76e71dbb56da9d1771ba74519ce908e183
1 // Solve the Momentum equation
3 tmp<fvVectorMatrix> UEqn
5     fvm::ddt(rho, U)
6   + fvm::div(phi, U)
7   + turbulence->divDevRhoReff(U)
8 );
10 UEqn().relax();
12 volScalarField rAU(1.0/UEqn().A());
14 if (pimple.momentumPredictor())
16     solve(UEqn() == -fvc::grad(p));
18 else
20     U = rAU*(UEqn().H() - fvc::grad(p));
21     U.correctBoundaryConditions();