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

hsEqn.H

Go to the documentation of this file.
00001 {
00002     tmp<volScalarField> pWork
00003     (
00004         new volScalarField
00005         (
00006             IOobject
00007             (
00008                 "pWork",
00009                 runTime.timeName(),
00010                 mesh,
00011                 IOobject::NO_READ,
00012                 IOobject::NO_WRITE
00013             ),
00014             mesh,
00015             dimensionedScalar("zero", dimensionSet(1, -1, -3, 0, 0), 0.0)
00016         )
00017     );
00018 
00019     if (dpdt)
00020     {
00021         pWork() += fvc::ddt(p);
00022     }
00023     if (eWork)
00024     {
00025         pWork() = -p*fvc::div(phi/fvc::interpolate(rho));
00026     }
00027     if (hWork)
00028     {
00029         pWork() += fvc::div(phi/fvc::interpolate(rho)*fvc::interpolate(p));
00030     }
00031 
00032     {
00033         solve
00034         (
00035             fvm::ddt(rho, hs)
00036           + mvConvection->fvmDiv(phi, hs)
00037           - fvm::laplacian(turbulence->alphaEff(), hs)
00038          ==
00039             pWork()
00040           + parcels.Sh()
00041           + radiation->Shs(thermo)
00042           + energySource.Su()
00043           + chemistrySh
00044         );
00045 
00046         thermo.correct();
00047 
00048         radiation->correct();
00049 
00050         Info<< "T gas min/max   = " << min(T).value() << ", "
00051             << max(T).value() << endl;
00052     }
00053 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines