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     tmp<fvVectorMatrix> UEqn
00003     (
00004         fvm::ddt(rho, U)
00005       + fvm::div(phi, U)
00006       + turb.divDevRhoReff(U)
00007     );
00008 
00009     UEqn().relax();
00010 
00011     if (momentumPredictor)
00012     {
00013          solve
00014          (
00015             UEqn()
00016          ==
00017             fvc::reconstruct
00018             (
00019                 fvc::interpolate(rho)*(g & mesh.Sf())
00020               - fvc::snGrad(p)*mesh.magSf()
00021             )
00022         );
00023     }
Copyright © 2000-2009 OpenCFD Ltd