Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
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 Foam_radiation_constantTransmissivity_H
41#define Foam_radiation_constantTransmissivity_H
42
44#include "Function1.H"
45
46// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48namespace Foam
49{
50namespace radiation
51{
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
71public:
72
73 //- Runtime type information
74 TypeName("constantTransmissivity");
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// ************************************************************************* //
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
A patch is a list of labels that address the faces in the global face list.
Definition polyPatch.H:73
TypeName("constantTransmissivity")
Runtime type information.
virtual ~constantTransmissivity()=default
Destructor.
constantTransmissivity(const dictionary &dict, const polyPatch &pp)
Construct from components.
tmp< scalarField > t(const label bandI=0, const vectorField *incomingDirection=nullptr, const scalarField *T=nullptr) const
Return transmissivity coefficient.
wallTransmissivityModel(const dictionary &dict, const polyPatch &pp)
Construct from components.
A class for managing temporary objects.
Definition tmp.H:75
Namespace for radiation modelling.
Namespace for OpenFOAM.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0).
Definition zero.H:127
Vector< scalar > vector
Definition vector.H:57
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68