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, 2024 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 Foam_radiation_constantTransmissivity_H
41 #define Foam_radiation_constantTransmissivity_H
42 
44 #include "Function1.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 namespace radiation
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class constantTransmissivity Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 :
60 {
61 
62  // Private data
63 
64  //- Coefficients dictionary
65  dictionary coeffsDict_;
66 
67  //- Transmissivity coefficient
69 
70 
71 public:
72 
73  //- Runtime type information
74  TypeName("constantTransmissivity");
75 
76 
77  // Constructors
78 
79  //- Construct from components
81 
82 
83  //- Destructor
84  virtual ~constantTransmissivity() = default;
85 
86 
87  // Member Functions
88 
89  //- Return transmissivity coefficient
91  (
92  const label bandI = 0,
93  const vectorField* incomingDirection = nullptr,
94  const scalarField* T = nullptr
95  ) const;
96 
97  //- Return transmissivity on facw
98  scalar t
99  (
100  const label faceI,
101  const label bandI = 0,
102  const vector dir = Zero,
103  const scalar T = 0
104  ) const;
105 
106  //- Is Grey
107  inline bool isGrey() const
108  {
109  return true;
110  }
111 
112  //- Number of bands
113  inline label nBands() const
114  {
115  return 1;
116  }
117 };
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 } // End namespace radiation
123 } // End namespace Foam
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 #endif
128 
129 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
tmp< scalarField > t(const label bandI=0, const vectorField *incomingDirection=nullptr, const 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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
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:127