constantTransmissivity.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::constantTransmissivity
28
29Group
30 grpRadiationTransmissivitySubModels
31
32Description
33 Constant radiation transmissivity coefficient
34
35SourceFiles
36 constantTransmissivity.C
37
38\*---------------------------------------------------------------------------*/
39
40#ifndef radiation_constantTransmissivity_H
41#define radiation_constantTransmissivity_H
42
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49namespace radiation
50{
51
52/*---------------------------------------------------------------------------*\
53 Class constantTransmissivity Declaration
54\*---------------------------------------------------------------------------*/
57:
59{
60
61 // Private data
62
63 //- Coefficients dictionary
64 dictionary coeffsDict_;
65
66 //- Transmissivity coefficient
67 scalar tau_;
68
69
70public:
71
72 //- Runtime type information
73 TypeName("constantTransmissivity");
74
75
76 // Constructors
77
78 //- Construct from components
80
81
82 //- Destructor
83 virtual ~constantTransmissivity() = default;
84
85
86 // Member Functions
87
88 //- Return transmissivity coefficient
90 (
91 const label bandI = 0,
92 vectorField* incomingDirection = nullptr,
93 scalarField* T = nullptr
94 ) const;
95
96 //- Return transmissivity on facw
97 scalar t
98 (
99 const label faceI,
100 const label bandI = 0,
101 const vector dir = Zero,
102 const scalar T = 0
103 ) const;
104
105 //- Is Grey
106 inline bool isGrey() const
107 {
108 return true;
109 }
110
111 //- Number of bands
112 inline label nBands() const
113 {
114 return 1;
115 }
116};
117
118
119// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120
121} // End namespace radiation
122} // End namespace Foam
123
124// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125
126#endif
127
128// ************************************************************************* //
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.
TypeName("constantTransmissivity")
Runtime type information.
virtual ~constantTransmissivity()=default
Destructor.
tmp< scalarField > t(const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Return transmissivity coefficient.
Base class for wall transmissivity 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
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73