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

fuhsEqn.H

Go to the documentation of this file.
00001 {
00002     // Solve fuel equation
00003     // ~~~~~~~~~~~~~~~~~~~
00004     fvScalarMatrix R = combustion->R(fu);
00005 
00006     {
00007         fvScalarMatrix fuEqn
00008         (
00009             fvm::ddt(rho, fu)
00010           + mvConvection->fvmDiv(phi, fu)
00011           - fvm::laplacian(turbulence->alphaEff(), fu)
00012          ==
00013             R
00014         );
00015 
00016         fuEqn.relax();
00017         fuEqn.solve();
00018     }
00019 
00020     Info<< "max(fu) = " << max(fu).value() << endl;
00021     Info<< "min(fu) = " << min(fu).value() << endl;
00022 
00023 
00024     // Solve sensible enthalpy equation
00025     // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00026     radiation->correct();
00027     dQ = combustion->dQ(R);
00028 
00029     {
00030         fvScalarMatrix hsEqn
00031         (
00032             fvm::ddt(rho, hs)
00033           + mvConvection->fvmDiv(phi,hs)
00034           - fvm::laplacian(turbulence->alphaEff(), hs)
00035          ==
00036             DpDt
00037           + dQ
00038           + radiation->Shs(thermo)
00039         );
00040 
00041         hsEqn.relax();
00042         hsEqn.solve();
00043     }
00044 
00045     thermo.correct();
00046     combustion->correct();
00047 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines