constantAbsorption.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) 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::constantAbsorption
28
29Group
30 grpRadiationTransmissivitySubModels
31
32Description
33 Constant radiation transmissivity coefficient
34
35SourceFiles
36 constantAbsorption.C
37
38\*---------------------------------------------------------------------------*/
39
40#ifndef radiation_constantAbsorption_H
41#define radiation_constantAbsorption_H
42
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49namespace radiation
50{
51
52/*---------------------------------------------------------------------------*\
53 Class constantAbsorption Declaration
54\*---------------------------------------------------------------------------*/
57:
59{
60
61 // Private data
62
63 //- Coefficients dictionary
64 dictionary coeffsDict_;
65
66 //- Absorptivity coefficient
67 scalar a_;
68
69 //- Emissivity coefficient
70 scalar e_;
71
72
73public:
74
75 //- Runtime type information
76 TypeName("constantAbsorption");
77
78
79 // Constructors
80
81 //- Construct from components
83
84
85 //- Destructor
86 virtual ~constantAbsorption() = default;
87
88
89 // Member Functions
90
91 //- absorptivity coefficient
93 (
94 const label bandI = 0,
95 vectorField* incomingDirection = nullptr,
96 scalarField* T = nullptr
97 ) const;
98
99 //- Return absorptivity on face
100 scalar a
101 (
102 const label faceI,
103 const label bandI = 0,
104 const vector dir = Zero,
105 const scalar T = 0
106 ) const;
107
108 //- Return emission coefficient
110 (
111 const label bandI = 0,
112 vectorField* incomingDirection = nullptr,
113 scalarField* T = nullptr
114 ) const;
115
116 //- Return emission coefficient
117 scalar e
118 (
119 const label faceI,
120 const label bandI = 0,
121 const vector dir = Zero,
122 const scalar T = 0
123 ) const;
124
125 //- Is Grey
126 inline bool isGrey() const
127 {
128 return true;
129 }
130
131 //- Number of bands
132 inline label nBands() const
133 {
134 return 1;
135 }
136};
137
138
139// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140
141} // End namespace radiation
142} // End namespace Foam
143
144// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145
146#endif
147
148// ************************************************************************* //
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
Constant radiation transmissivity coefficient.
tmp< scalarField > a(const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
absorptivity coefficient
label nBands() const
Number of bands.
TypeName("constantAbsorption")
Runtime type information.
virtual ~constantAbsorption()=default
Destructor.
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