OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

greyMeanAbsorptionEmission.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 2008-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::radiation::greyMeanAbsorptionEmission
00027 
00028 Description
00029     greyMeanAbsorptionEmission radiation absorption and emission coefficients
00030     for continuous phase
00031 
00032     The coefficients for the species in the Look up table have to be specified
00033     for use in moles x P [atm], i.e. (k[i] = species[i]*p*9.869231e-6).
00034 
00035     The coefficients for CO and soot or any other added are multiplied by the
00036     respective mass fraction being solved
00037 
00038     All the species in the dictionary need either to be in the look-up table or
00039     being solved. Conversely, all the species solved do not need to be included
00040     in the calculation of the absorption coefficient
00041 
00042     The names of the species in the absorption dictionary must match exactly the
00043     name in the look-up table or the name of the field being solved
00044 
00045     The look-up table ("speciesTable") file should be in constant
00046 
00047     i.e. dictionary
00048 
00049     LookUpTableFileName     "speciesTable";
00050 
00051     EhrrCoeff                0.0;
00052 
00053     CO2
00054     {
00055         Tcommon         300.;   // Common Temp
00056         invTemp         true;   // Is the polynomial using inverse temperature?
00057         Tlow            300.;   // Low Temp
00058         Thigh           2500.;  // High Temp
00059 
00060         loTcoeffs       // coeffs for T < Tcommon
00061         (
00062             0           //  a0            +
00063             0           //  a1*T          +
00064             0           //  a2*T^(+/-)2   +
00065             0           //  a3*T^(+/-)3   +
00066             0           //  a4*T^(+/-)4   +
00067             0           //  a5*T^(+/-)5   +
00068         );
00069         hiTcoeffs       // coeffs for T > Tcommon
00070         (
00071             18.741
00072             -121.31e3
00073             273.5e6
00074             -194.05e9
00075             56.31e12
00076             -5.8169e15
00077         );
00078 
00079     }
00080 
00081 SourceFiles
00082     greyMeanAbsorptionEmission.C
00083 
00084 \*---------------------------------------------------------------------------*/
00085 
00086 #ifndef greyMeanAbsorptionEmission_H
00087 #define greyMeanAbsorptionEmission_H
00088 
00089 #include "interpolationLookUpTable.H"
00090 #include "absorptionEmissionModel.H"
00091 #include "HashTable.H"
00092 #include "absorptionCoeffs.H"
00093 #include "basicThermo.H"
00094 
00095 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00096 
00097 namespace Foam
00098 {
00099 namespace radiation
00100 {
00101 
00102 /*---------------------------------------------------------------------------*\
00103                  Class greyMeanAbsorptionEmission Declaration
00104 \*---------------------------------------------------------------------------*/
00105 
00106 class greyMeanAbsorptionEmission
00107 :
00108     public absorptionEmissionModel
00109 {
00110 public:
00111 
00112     // Public data
00113 
00114         // - Maximum number of species considered for absorptivity
00115         static const int nSpecies_ = 5;
00116 
00117         //  Absorption Coefficients
00118         absorptionCoeffs coeffs_[nSpecies_];
00119 
00120 
00121 private:
00122 
00123     // Private data
00124 
00125         //- Absorption model dictionary
00126         dictionary coeffsDict_;
00127 
00128         //- Hash table of species names
00129         HashTable<label> speciesNames_;
00130 
00131         // Indices of species in the look-up table
00132         FixedList<label, nSpecies_> specieIndex_;
00133 
00134         // Look-up table of species related to ft
00135         mutable interpolationLookUpTable<scalar> lookUpTable_;
00136 
00137         // Thermo package
00138         const basicThermo& thermo_;
00139 
00140         //- Emission constant coefficient
00141         const scalar EhrrCoeff_;
00142 
00143         //- Pointer list of species in the registry involved in the absorption
00144         UPtrList<volScalarField> Yj_;
00145 
00146 
00147 public:
00148 
00149     //- Runtime type information
00150     TypeName("greyMeanAbsorptionEmission");
00151 
00152 
00153     // Constructors
00154 
00155         //- Construct from components
00156         greyMeanAbsorptionEmission
00157         (
00158             const dictionary& dict,
00159             const fvMesh& mesh
00160         );
00161 
00162 
00163     // Destructor
00164     virtual ~greyMeanAbsorptionEmission();
00165 
00166 
00167     // Member Operators
00168 
00169         // Access
00170 
00171             // Absorption coefficient
00172 
00173                 //- Absorption coefficient for continuous phase
00174                 tmp<volScalarField> aCont(const label bandI = 0) const;
00175 
00176 
00177             // Emission coefficient
00178 
00179                 //- Emission coefficient for continuous phase
00180                 tmp<volScalarField> eCont(const label bandI = 0) const;
00181 
00182 
00183             // Emission contribution
00184 
00185                 //- Emission contribution for continuous phase
00186                 tmp<volScalarField> ECont(const label bandI = 0) const;
00187 
00188 
00189     // Member Functions
00190 
00191         inline bool isGrey() const
00192         {
00193             return true;
00194         }
00195 };
00196 
00197 
00198 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00199 
00200 } // End namespace radiation
00201 } // End namespace Foam
00202 
00203 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00204 
00205 #endif
00206 
00207 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd