ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / applications / solvers / incompressible / pimpleFoam / UEqn.H
blob08c06d3f4615158b864d6a087d2e701033a5b2fe
1 // Solve the Momentum equation
3 tmp<fvVectorMatrix> UEqn
5     fvm::ddt(U)
6   + fvm::div(phi, U)
7   + turbulence->divDevReff(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();