00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2010 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 00013 the Free Software Foundation, either version 3 of the License, or 00014 (at your 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, see <http://www.gnu.org/licenses/>. 00023 00024 Class 00025 Foam::radiation::constantAbsorptionEmission 00026 00027 Description 00028 Constant radiation absorption and emission coefficients for continuous 00029 phase 00030 00031 SourceFiles 00032 constantAbsorptionEmission.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef radiationConstantAbsorptionEmission_H 00037 #define radiationConstantAbsorptionEmission_H 00038 00039 #include <radiation/absorptionEmissionModel.H> 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 namespace radiation 00046 { 00047 00048 /*---------------------------------------------------------------------------*\ 00049 Class constantAbsorptionEmission Declaration 00050 \*---------------------------------------------------------------------------*/ 00051 00052 class constantAbsorptionEmission 00053 : 00054 public absorptionEmissionModel 00055 { 00056 // Private data 00057 00058 //- Absorption model dictionary 00059 dictionary coeffsDict_; 00060 00061 //- Absorption coefficient / [1/m] 00062 dimensionedScalar a_; 00063 00064 //- Emission coefficient / [1/m] 00065 dimensionedScalar e_; 00066 00067 //- Emission contribution / [kg/(m s^3)] 00068 dimensionedScalar E_; 00069 00070 00071 public: 00072 00073 //- Runtime type information 00074 TypeName("constantAbsorptionEmission"); 00075 00076 00077 // Constructors 00078 00079 //- Construct from components 00080 constantAbsorptionEmission 00081 ( 00082 const dictionary& dict, 00083 const fvMesh& mesh 00084 ); 00085 00086 00087 // Destructor 00088 virtual ~constantAbsorptionEmission(); 00089 00090 00091 // Member Operators 00092 00093 // Access 00094 00095 // Absorption coefficient 00096 00097 //- Absorption coefficient for continuous phase 00098 tmp<volScalarField> aCont(const label bandI = 0) const; 00099 00100 00101 // Emission coefficient 00102 00103 //- Emission coefficient for continuous phase 00104 tmp<volScalarField> eCont(const label bandI = 0) const; 00105 00106 00107 // Emission contribution 00108 00109 //- Emission contribution for continuous phase 00110 tmp<volScalarField> ECont(const label bandI = 0) const; 00111 00112 00113 // Member Functions 00114 00115 inline bool isGrey() const 00116 { 00117 return true; 00118 } 00119 }; 00120 00121 00122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00123 00124 } // End namespace radiation 00125 } // End namespace Foam 00126 00127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00128 00129 #endif 00130 00131 // ************************ vim: set sw=4 sts=4 et: ************************ //