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 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace radiation
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************************************************************* //
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::radiation::constantTransmissivity::nBands
label nBands() const
Number of bands.
Definition: constantTransmissivity.H:111
Foam::Zero
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
wallTransmissivityModel.H
Foam::radiation::constantTransmissivity::t
tmp< scalarField > t(const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Return transmissivity coefficient.
Definition: constantTransmissivity.C:67
Foam::radiation::constantTransmissivity::constantTransmissivity
constantTransmissivity(const dictionary &dict, const polyPatch &pp)
Construct from components.
Definition: constantTransmissivity.C:52
Foam::radiation::constantTransmissivity::isGrey
bool isGrey() const
Is Grey.
Definition: constantTransmissivity.H:105
Foam::radiation::wallTransmissivityModel
Base class for wall transmissivity models.
Definition: wallTransmissivityModel.H:52
Foam::Field< vector >
Foam::polyPatch
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:68
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:58
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::Vector< scalar >
Foam::radiation::constantTransmissivity::TypeName
TypeName("constantTransmissivity")
Runtime type information.
Foam::radiation::constantTransmissivity::~constantTransmissivity
virtual ~constantTransmissivity()=default
Destructor.
Foam::radiation::constantTransmissivity
Constant radiation transmissivity coefficient.
Definition: constantTransmissivity.H:55