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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::radiation::constantTransmissivity
28 
29 Group
30  grpRadiationTransmissivitySubModels
31 
32 Description
33  Constant radiation transmissivity coefficient
34 
35 SourceFiles
36  constantTransmissivity.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef radiation_constantTransmissivity_H
41 #define radiation_constantTransmissivity_H
42 
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace radiation
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class constantTransmissivity Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 :
59 {
60 
61  // Private data
62 
63  //- Coefficients dictionary
64  dictionary coeffsDict_;
65 
66  //- Transmissivity coefficient
67  scalar tau_;
68 
69 
70 public:
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 };
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace radiation
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 #endif
127 
128 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:120
tmp< scalarField > t(const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Return transmissivity coefficient.
virtual ~constantTransmissivity()=default
Destructor.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
constantTransmissivity(const dictionary &dict, const polyPatch &pp)
Construct from components.
A class for managing temporary objects.
Definition: HashPtrTable.H:50
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:69
Constant radiation transmissivity coefficient.
Base class for wall transmissivity models.
TypeName("constantTransmissivity")
Runtime type information.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
Namespace for OpenFOAM.
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:133