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       + fvc::div
00008         (
00009             (Alpha/(scalar(1.001) - Alpha))*(sqr(rhoc)/rho)*Vdj*Vdj,
00010             "div(phiVdj,Vdj)"
00011         )
00012       - fvm::laplacian(mu, U, "laplacian(muEff,U)")
00013     );
00014 
00015     UEqn.relax();
00016 
00017     if (momentumPredictor)
00018     {
00019         solve
00020         (
00021             UEqn
00022           ==
00023             fvc::reconstruct
00024             (
00025                 fvc::interpolate(rho)*(g & mesh.Sf())
00026               - fvc::snGrad(p)*mesh.magSf()
00027             )
00028         );
00029     }
Copyright © 2000-2009 OpenCFD Ltd