OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

UEqn.H

Go to the documentation of this file.
00001     // Solve the Momentum equation
00002 
00003     fvVectorMatrix UEqn
00004     (
00005         fvm::ddt(rho, U)
00006       + fvm::div(phi, U)
00007       + turbulence->divDevRhoReff(U)
00008     );
00009 
00010     UEqn.relax();
00011 
00012     if (momentumPredictor)
00013     {
00014         solve
00015         (
00016             UEqn
00017          ==
00018             fvc::reconstruct
00019             (
00020                 fvc::interpolate(rho)*(g & mesh.Sf())
00021               - fvc::snGrad(p)*mesh.magSf()
00022             )
00023         );
00024     }
Copyright © 2000-2009 OpenCFD Ltd