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     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     if (finalIter)
00016     {
00017         UEqn.relax(1);
00018     }
00019     else
00020     {
00021         UEqn.relax();
00022     }
00023 
00024     if (momentumPredictor)
00025     {
00026         solve
00027         (
00028             UEqn
00029           ==
00030             fvc::reconstruct
00031             (
00032                 (
00033                   - ghf*fvc::snGrad(rho)
00034                   - fvc::snGrad(p_rgh)
00035                 )*mesh.magSf()
00036             ),
00037             mesh.solver(U.select(finalIter))
00038         );
00039     }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines