multiBandAbsorptionEmission.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2015-2019 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::radiation::multiBandAbsorptionEmission
28
29Group
30 grpRadiationAbsorptionEmissionSubModels
31
32Description
33
34 multiBandAbsorptionEmission radiation absorption/emission for solids.
35
36
37SourceFiles
38 multiBandAbsorptionEmission.C
39
40\*---------------------------------------------------------------------------*/
41
42#ifndef multiBandAbsorptionEmission_H
43#define multiBandAbsorptionEmission_H
44
46
47// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48
49namespace Foam
50{
51namespace radiation
52{
53
54/*---------------------------------------------------------------------------*\
55 Class multiBandAbsorptionEmission Declaration
56\*---------------------------------------------------------------------------*/
59:
61{
62public:
63
64 // Public data
65
66 //- Maximum number of bands
67 static const int maxBands_ = 5;
68
69
70private:
71
72 // Private data
73
74 //- Absorption model dictionary
75 dictionary coeffsDict_;
76
77 //- Absorption coefficients
78 scalarList absCoeffs_;
79
80 //- Emissivity coefficients
81 scalarList emiCoeffs_;
82
83 //- Bands
84 label nBands_;
85
86
87public:
88
89 //- Runtime type information
90 TypeName("multiBandAbsorptionEmission");
91
92
93 // Constructors
94
95 //- Construct from components
97 (
98 const dictionary& dict,
99 const fvMesh& mesh
100 );
101
102
103 //- Destructor
105
106
107 // Member Functions
108
109 // Access
110
111 // Absorption coefficient
112
113 //- Absorption coefficient
114 tmp<volScalarField> aCont(const label bandI) const;
115
116
117 // Emission coefficient
118
119 //- Emission coefficient
120 tmp<volScalarField> eCont(const label bandI) const;
121
122
123 // Emission contribution
124
125 //- Emission contribution
126 tmp<volScalarField> ECont(const label bandI) const;
127
129 inline bool isGrey() const
130 {
131 return false;
132 }
133
134 //- Number of bands
135 inline label nBands() const
136 {
137 return nBands_;
138 }
139
140};
141
142
143// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144
145} // End namespace radiation
146} // End namespace Foam
147
148// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149
150#endif
151
152// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
Model to supply absorption and emission coefficients for radiation modelling.
const fvMesh & mesh() const
Reference to the mesh.
const dictionary & dict() const
Reference to the dictionary.
multiBandAbsorptionEmission radiation absorption/emission for solids.
static const int maxBands_
Maximum number of bands.
bool isGrey() const
Flag for whether the absorption/emission is for a grey gas.
tmp< volScalarField > eCont(const label bandI) const
Emission coefficient.
tmp< volScalarField > ECont(const label bandI) const
Emission contribution.
TypeName("multiBandAbsorptionEmission")
Runtime type information.
tmp< volScalarField > aCont(const label bandI) const
Absorption coefficient.
A class for managing temporary objects.
Definition: tmp.H:65
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73