multiBandTransmissivity.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::multiBandTransmissivity
28
29Group
30 grpwallTransmissivityModel
31
32Description
33 multiBandTransmissivity radiation transmissivity for solids.
34
35Usage
36 \verbatim
37
38 wallTransmissivityModel
39 {
40 type multiBandTransmissivity;
41 transmissivity (0.3 0.7);
42 };
43
44 \endverbatim
45
46SourceFiles
47 multiBandTransmissivity.C
48
49\*---------------------------------------------------------------------------*/
50
51#ifndef multiBandTransmissivity_H
52#define multiBandTransmissivity_H
53
55
56// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57
58namespace Foam
59{
60namespace radiation
61{
62
63/*---------------------------------------------------------------------------*\
64 Class multiBandTransmissivity Declaration
65\*---------------------------------------------------------------------------*/
68:
70{
71public:
72
73 // Public data
74
75 //- Maximum number of bands
76 static const label maxBands_ = 5;
77
78
79private:
80
81 // Private data
82
83 //- Absorption model dictionary
84 dictionary coeffsDict_;
85
86 //- Absorption coefficients
87 scalarList tauCoeffs_;
88
89 //- Bands
90 label nBands_;
91
92
93public:
94
95 //- Runtime type information
96 TypeName("multiBandTransmissivity");
97
98
99 // Constructors
100
101 //- Construct from components
103 (
104 const dictionary& dict,
105 const polyPatch& p
106 );
107
108
109 //- Destructor
110 virtual ~multiBandTransmissivity() = default;
111
112
113 // Member Functions
114
115 // Access
116
117 //- Return transmissivity
119 (
120 const label bandI = 0,
121 vectorField* incomingDirection = nullptr,
122 scalarField* T = nullptr
123 ) const;
124
125 //- Return transmissivity on face
126 scalar t
127 (
128 const label faceI,
129 const label bandI = 0,
130 const vector dir = Zero,
131 const scalar T = 0
132 ) const;
133
134 //- Is Grey
135 inline bool isGrey() const
136 {
137 return false;
138 }
139
140 //- Number of bands
141 inline label nBands() const
142 {
143 return nBands_;
144 }
145};
146
147
148// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149
150} // End namespace radiation
151} // End namespace Foam
152
153// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154
155#endif
156
157// ************************************************************************* //
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
multiBandTransmissivity radiation transmissivity for solids.
virtual ~multiBandTransmissivity()=default
Destructor.
static const label maxBands_
Maximum number of bands.
TypeName("multiBandTransmissivity")
Runtime type information.
tmp< scalarField > t(const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Return transmissivity.
Base class for wall transmissivity models.
A class for managing temporary objects.
Definition: tmp.H:65
volScalarField & p
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
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73