1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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
32 Foam::radiation::radiationModel
35 Top level model for radiation modelling
40 \*---------------------------------------------------------------------------*/
42 #ifndef radiationModel_H
43 #define radiationModel_H
45 #include "IOdictionary.H"
47 #include "runTimeSelectionTables.H"
48 #include "volFields.H"
49 #include "basicThermo.H"
50 #include "fvMatrices.H"
51 #include "blackBodyEmission.H"
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
60 // Forward declaration of classes
61 class absorptionEmissionModel;
64 /*---------------------------------------------------------------------------*\
65 Class radiationModel Declaration
66 \*---------------------------------------------------------------------------*/
76 //- Reference to the mesh database
79 //- Reference to the time database
82 //- Reference to the temperature field
83 const volScalarField& T_;
85 //- Model specific dictionary input parameters
88 //- Radiation model dictionary
91 //- Radiation solver frequency - number flow solver iterations per
92 // radiation solver iteration
96 // References to the radiation sub-models
98 //- Absorption/emission model
99 autoPtr<absorptionEmissionModel> absorptionEmission_;
102 autoPtr<scatterModel> scatter_;
107 // Private Member Functions
109 //- Disallow default bitwise copy construct
110 radiationModel(const radiationModel&);
112 //- Disallow default bitwise assignment
113 void operator=(const radiationModel&);
118 //- Runtime type information
119 TypeName("radiationModel");
122 // Declare runtime constructor selection table
124 declareRunTimeSelectionTable
130 const volScalarField& T
139 radiationModel(const volScalarField& T);
141 //- Construct from components
142 radiationModel(const word& type, const volScalarField& T);
147 //- Return a reference to the selected radiation model
148 static autoPtr<radiationModel> New(const volScalarField& T);
152 virtual ~radiationModel();
159 //- Main update/correction routine
160 virtual void correct();
162 //- Solve radiation equation(s)
163 virtual void calculate() = 0;
165 //- Read radiationProperties dictionary
166 virtual bool read() = 0;
171 //- Source term component (for power of T^4)
172 virtual tmp<volScalarField> Rp() const = 0;
174 //- Source term component (constant)
175 virtual tmp<DimensionedField<scalar, volMesh> > Ru() const = 0;
177 //- Enthalpy source term
178 virtual tmp<fvScalarMatrix> Sh(basicThermo& thermo) const;
182 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
184 } // End namespace radiation
185 } // End namespace Foam
187 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
191 // ************************************************************************* //