1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Namespace for radiation modelling
33 Foam::radiation::radiationModel
36 Top level model for radiation modelling
41 \*---------------------------------------------------------------------------*/
43 #ifndef radiationModel_H
44 #define radiationModel_H
46 #include "IOdictionary.H"
48 #include "runTimeSelectionTables.H"
49 #include "volFields.H"
50 #include "basicThermo.H"
51 #include "fvMatrices.H"
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
60 class absorptionEmissionModel;
63 /*---------------------------------------------------------------------------*\
64 Class radiationModel Declaration
65 \*---------------------------------------------------------------------------*/
76 //- Reference to the temperature field
77 const volScalarField& T_;
79 //- Reference to the mesh
82 //- Model specific dictionary input parameters
85 //- Radiation model dictionary
86 dictionary radiationModelCoeffs_;
89 // References to the radiation sub-models
91 //- Absorption/emission model
92 autoPtr<absorptionEmissionModel> absorptionEmission_;
95 autoPtr<scatterModel> scatter_;
100 // Private Member Functions
102 //- Disallow default bitwise copy construct
103 radiationModel(const radiationModel&);
105 //- Disallow default bitwise assignment
106 void operator=(const radiationModel&);
111 //- Runtime type information
112 TypeName("radiationModel");
115 // Declare runtime constructor selection table
117 declareRunTimeSelectionTable
123 const volScalarField& T
131 //- Construct from components
135 const volScalarField& T
141 //- Return a reference to the selected radiation model
142 static autoPtr<radiationModel> New
144 const volScalarField& T
150 virtual ~radiationModel();
157 //- Solve radiation equation(s)
158 virtual void correct() = 0;
160 //- Read radiationProperties dictionary
161 virtual bool read() = 0;
166 //- Source term component (for power of T^4)
167 virtual tmp<volScalarField> Rp() const = 0;
169 //- Source term component (constant)
170 virtual tmp<DimensionedField<scalar, volMesh> > Ru() const = 0;
172 //- Enthalpy source term
173 virtual tmp<fvScalarMatrix> Sh
180 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
182 } // End namespace radiation
183 } // End namespace Foam
185 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 // ************************************************************************* //