|
|
|
blackBodyEmission.HGo 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::blackBodyEmission 00027 00028 Description 00029 Class black body emission 00030 00031 Table of black body emissive power taken from: 00032 Modest, "Radiative Heat Transfer", pp.775-777, 1993 00033 00034 SourceFiles 00035 blackBodyEmission.C 00036 00037 \*---------------------------------------------------------------------------*/ 00038 00039 #ifndef blackModyEmission_H 00040 #define blackModyEmission_H 00041 00042 #include "volFields.H" 00043 #include "dimensionedScalar.H" 00044 #include "mathematicalConstants.H" 00045 #include "radiationConstants.H" 00046 #include "interpolationTable.H" 00047 #include "Vector2D.H" 00048 00049 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00050 00051 namespace Foam 00052 { 00053 namespace radiation 00054 { 00055 00056 /*---------------------------------------------------------------------------*\ 00057 Class blackBodyEmission Declaration 00058 \*---------------------------------------------------------------------------*/ 00059 00060 class blackBodyEmission 00061 { 00062 public: 00063 00064 //- Static table of black body emissive power 00065 static const List<Tuple2<scalar, scalar> > emissivePowerTable; 00066 00067 00068 private: 00069 00070 // Private data 00071 00072 //- Interpolation table of black body emissive power 00073 mutable interpolationTable<scalar> table_; 00074 00075 //- Constant C1 00076 const dimensionedScalar C1_; 00077 00078 //- Constant C2 00079 const dimensionedScalar C2_; 00080 00081 // Ptr List for black body emission energy field for each wavelength 00082 PtrList<volScalarField> bLambda_; 00083 00084 // Reference to the temperature field 00085 const volScalarField& T_; 00086 00087 00088 // Private member functions 00089 00090 scalar fLambdaT(const scalar lambdaT) const; 00091 00092 00093 public: 00094 00095 // Constructors 00096 00097 //- Construct from components 00098 blackBodyEmission 00099 ( 00100 const label nLambda, 00101 const volScalarField& T 00102 ); 00103 00104 00105 // Destructor 00106 ~blackBodyEmission(); 00107 00108 00109 // Member functions 00110 00111 // Access 00112 00113 //- Black body spectrum 00114 inline const volScalarField& bLambda(const label lambdaI) const 00115 { 00116 return bLambda_[lambdaI]; 00117 } 00118 00119 //- Spectral emission for the black body at T and lambda 00120 inline dimensionedScalar EblambdaT 00121 ( 00122 const dimensionedScalar& T, 00123 const scalar lambda 00124 ) const 00125 { 00126 return (C1_/(pow5(lambda)*(exp(C2_/(lambda*T)) - 1.0))); 00127 } 00128 00129 //- Integral energy at T from lambda1 to lambda2 00130 tmp<Foam::volScalarField> EbDeltaLambdaT 00131 ( 00132 const volScalarField& T, 00133 const Vector2D<scalar>& band 00134 ) const; 00135 00136 00137 // Edit 00138 00139 // Update black body emission 00140 void correct(const label lambdaI, const Vector2D<scalar>& band); 00141 }; 00142 00143 00144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00145 00146 } // End namespace Foam 00147 } // End namespace radiation 00148 00149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00150 00151 #endif 00152 00153 // ************************************************************************* // |