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

chemistry.H

Go to the documentation of this file.
00001 if (chemistry.chemistry())
00002 {
00003     Info<< "Solving chemistry" << endl;
00004 
00005     chemistry.solve
00006     (
00007         runTime.value() - runTime.deltaTValue(),
00008         runTime.deltaTValue()
00009     );
00010 
00011     // turbulent time scale
00012     if (turbulentReaction)
00013     {
00014         tmp<volScalarField> tepsilon(turbulence->epsilon());
00015         const volScalarField& epsilon = tepsilon();
00016         tmp<volScalarField> tmuEff(turbulence->muEff());
00017         const volScalarField& muEff = tmuEff();
00018         tmp<volScalarField> ttc(chemistry.tc());
00019         const volScalarField& tc = ttc();
00020 
00021         forAll(epsilon, i)
00022         {
00023             if (epsilon[i] > 0)
00024             {
00025                 // Chalmers PaSR model
00026                 scalar tk = Cmix.value()*Foam::sqrt(muEff[i]/rho[i]/epsilon[i]);
00027                 kappa[i] =
00028                     (runTime.deltaTValue() + tc[i])
00029                    /(runTime.deltaTValue() + tc[i] + tk);
00030             }
00031             else
00032             {
00033                 // Return to laminar combustion
00034                 kappa[i] = 1.0;
00035             }
00036         }
00037     }
00038     else
00039     {
00040         kappa = 1.0;
00041     }
00042 
00043     chemistrySh = kappa*chemistry.Sh()();
00044 }
00045 
00046 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines