FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

UEqn.H

Go to the documentation of this file.
00001     // Solve the Momentum equation
00002     tmp<fvVectorMatrix> UEqn
00003     (
00004         fvm::div(phi, U)
00005       + turb.divDevRhoReff(U)
00006     );
00007 
00008     UEqn().relax();
00009 
00010     eqnResidual = solve
00011     (
00012         UEqn()
00013      ==
00014         fvc::reconstruct
00015         (
00016             (
00017               - ghf*fvc::snGrad(rho)
00018               - fvc::snGrad(p_rgh)
00019             )*mesh.magSf()
00020         )
00021     ).initialResidual();
00022 
00023     maxResidual = max(eqnResidual, maxResidual);
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines