multiBandAbsorption.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-2018 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::multiBandAbsorption
28
29Group
30 wallAbsorptionEmissionModel
31
32Description
33 multiBandAbsorption radiation transmissivity for solids.
34
35Usage
36 \verbatim
37
38 wallAbsorptionEmissionModel
39 {
40 type multiBandAbsorption;
41 absorptivity (0.3 0.7);
42 emissivity (0.3 0.7);
43 };
44
45 \endverbatim
46
47SourceFiles
48 multiBandAbsorption.C
49
50\*---------------------------------------------------------------------------*/
51
52#ifndef multiBandAbsorption_H
53#define multiBandAbsorption_H
54
56
57// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58
59namespace Foam
60{
61namespace radiation
62{
63
64/*---------------------------------------------------------------------------*\
65 Class multiBandAbsorption Declaration
66\*---------------------------------------------------------------------------*/
69:
71{
72public:
73
74 // Public data
75
76 //- Maximum number of bands
77 static const label maxBands_ = 5;
78
79
80private:
81
82 // Private data
83
84 //- Absorption model dictionary
85 dictionary coeffsDict_;
86
87 //- Absorption coefficients
88 scalarList aCoeffs_;
89
90 //- Emission coefficients
91 scalarList eCoeffs_;
92
93 //- Bands
94 label nBands_;
95
96
97public:
98
99 //- Runtime type information
100 TypeName("multiBandAbsorption");
101
102
103 // Constructors
104
105 //- Construct from components
107 (
108 const dictionary& dict,
109 const polyPatch& pp
110 );
111
112
113 //- Destructor
114 virtual ~multiBandAbsorption();
115
116
117 // Member Functions
118
119 // Access
120
121 //- absorptivity coefficient
123 (
124 const label bandI = 0,
125 vectorField* incomingDirection = nullptr,
126 scalarField* T = nullptr
127 ) const;
128
129 //- Return absorptivity on face
130 scalar a
131 (
132 const label faceI,
133 const label bandI = 0,
134 const vector dir = Zero,
135 const scalar T = 0
136 ) const;
137
138 //- Return emission coefficient
140 (
141 const label bandI = 0,
142 vectorField* incomingDirection = nullptr,
143 scalarField* T = nullptr
144 ) const;
145
146 //- Return emission coefficient
147 scalar e
148 (
149 const label faceI,
150 const label bandI = 0,
151 const vector dir = Zero,
152 const scalar T = 0
153 ) const;
154
155 //- Is Grey
156 inline bool isGrey() const
157 {
158 return false;
159 }
160
161 //- Number of bands
162 inline label nBands() const
163 {
164 return nBands_;
165 }
166
167};
168
169
170// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
171
172} // End namespace radiation
173} // End namespace Foam
174
175// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176
177#endif
178
179// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:75
multiBandAbsorption radiation transmissivity for solids.
tmp< scalarField > a(const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
absorptivity coefficient
label nBands() const
Number of bands.
TypeName("multiBandAbsorption")
Runtime type information.
static const label maxBands_
Maximum number of bands.
Based class for wall absorption emission models.
A class for managing temporary objects.
Definition: tmp.H:65
const volScalarField & T
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Namespace for OpenFOAM.
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
dictionary dict
volScalarField & e
Definition: createFields.H:11
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73