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     surfaceScalarField muEff
00002     (
00003         "muEff",
00004         twoPhaseProperties.muf()
00005       + fvc::interpolate(rho*turbulence->nut())
00006     );
00007 
00008     // Calculate and cache mu for the porous media
00009     volScalarField mu(twoPhaseProperties.mu());
00010 
00011     fvVectorMatrix UEqn
00012     (
00013         pZones.ddt(rho, U)
00014       + fvm::div(rhoPhi, U)
00015       - fvm::laplacian(muEff, U)
00016       - (fvc::grad(U) & fvc::grad(muEff))
00017     //- fvc::div(muEff*(fvc::interpolate(dev(fvc::grad(U))) & mesh.Sf()))
00018     );
00019 
00020     UEqn.relax();
00021 
00022     pZones.addResistance(UEqn);
00023 
00024     if (momentumPredictor)
00025     {
00026         solve
00027         (
00028             UEqn
00029          ==
00030             fvc::reconstruct
00031             (
00032                 (
00033                     fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)
00034                   - ghf*fvc::snGrad(rho)
00035                   - fvc::snGrad(p_rgh)
00036                 ) * mesh.magSf()
00037             )
00038         );
00039     }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines