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 
00003     tmp<fvVectorMatrix> UEqn
00004     (
00005         fvm::div(phi, U)
00006       + turbulence->divDevRhoReff(U)
00007     );
00008 
00009     UEqn().relax();
00010 
00011     if (momentumPredictor)
00012     {
00013         eqnResidual = solve
00014         (
00015             UEqn()
00016          ==
00017             fvc::reconstruct
00018             (
00019                 (
00020                   - ghf*fvc::snGrad(rho)
00021                   - fvc::snGrad(p_rgh)
00022                 )*mesh.magSf()
00023             )
00024         ).initialResidual();
00025 
00026         maxResidual = max(eqnResidual, maxResidual);
00027     }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines