|
|
|
P1.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) 1991-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::P1 00027 00028 Description 00029 Works well for combustion applications where optical thickness, tau is 00030 large, i.e. tau = a*L > 3 (L = distance between objects) 00031 00032 Assumes 00033 - all surfaces are diffuse 00034 - tends to over predict radiative fluxes from sources/sinks 00035 *** SOURCES NOT CURRENTLY INCLUDED *** 00036 00037 SourceFiles 00038 P1.C 00039 00040 \*---------------------------------------------------------------------------*/ 00041 00042 #ifndef radiationModelP1_H 00043 #define radiationModelP1_H 00044 00045 #include "radiationModel.H" 00046 00047 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00048 00049 namespace Foam 00050 { 00051 namespace radiation 00052 { 00053 00054 /*---------------------------------------------------------------------------*\ 00055 Class P1 Declaration 00056 \*---------------------------------------------------------------------------*/ 00057 00058 class P1 00059 : 00060 public radiationModel 00061 { 00062 // Private data 00063 00064 //- Incident radiation / [W/m2] 00065 volScalarField G_; 00066 00067 //- Absorption coefficient 00068 volScalarField a_; 00069 00070 //- Emission coefficient 00071 volScalarField e_; 00072 00073 //- Emission contribution 00074 volScalarField E_; 00075 00076 00077 // Private member functions 00078 00079 //- Disallow default bitwise copy construct 00080 P1(const P1&); 00081 00082 //- Disallow default bitwise assignment 00083 void operator=(const P1&); 00084 00085 00086 public: 00087 00088 //- Runtime type information 00089 TypeName("P1"); 00090 00091 00092 // Constructors 00093 00094 //- Construct from components 00095 P1(const volScalarField& T); 00096 00097 00098 // Destructor 00099 virtual ~P1(); 00100 00101 00102 // Member functions 00103 00104 // Edit 00105 00106 //- Solve radiation equation(s) 00107 void calculate(); 00108 00109 //- Read radiation properties dictionary 00110 bool read(); 00111 00112 00113 // Access 00114 00115 //- Source term component (for power of T^4) 00116 virtual tmp<volScalarField> Rp() const; 00117 00118 //- Source term component (constant) 00119 virtual tmp<DimensionedField<scalar, volMesh> > Ru() const; 00120 }; 00121 00122 00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00124 00125 } // End namespace radiation 00126 } // End namespace Foam 00127 00128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00129 00130 #endif 00131 00132 // ************************************************************************* // |