boundaryRadiationProperties.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::boundaryRadiationProperties
28
29Description
30 Boundary radiation properties holder
31
32SourceFiles
33 boundaryRadiationProperties.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef boundaryRadiationProperties_H
38#define boundaryRadiationProperties_H
39
40#include "MeshObject.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48class fvMesh;
49
50namespace radiation
51{
52
53/*---------------------------------------------------------------------------*\
54 Class boundaryRadiationProperties Declaration
55\*---------------------------------------------------------------------------*/
58:
59 public MeshObject
60 <
61 fvMesh,
62 Foam::GeometricMeshObject,
63 boundaryRadiationProperties
64 >
65{
66 // Private data
67
68 //- Ptr list of boundaryRadiationProperties
70 radBoundaryPropertiesPtrList_;
71
72
73public:
74
75 // Declare name of the class and its debug switch
76 TypeName("boundaryRadiationProperties");
77
78
79 // Constructors
80
81 //- Construct given fvMesh
82 explicit boundaryRadiationProperties(const fvMesh&);
83
84
85 // Member Functions
86
87 //- Access boundary emissivity on patch
89 (
90 const label patchI,
91 const label bandI = 0,
92 vectorField* incomingDirection = nullptr,
93 scalarField* T = nullptr
94 ) const;
95
96 //- Access boundary emissivity on face
97 scalar faceEmissivity
98 (
99 const label patchI,
100 const label faceI,
101 const label bandI = 0,
102 vector incomingDirection = Zero,
103 scalar T = 0
104 ) const;
105
106 //- Access boundary absorptivity on patch
108 (
109 const label patchI,
110 const label bandI = 0,
111 vectorField* incomingDirection = nullptr,
112 scalarField* T = nullptr
113 ) const;
114
115 //- Access boundary absorptivity on face
116 scalar faceAbsorptivity
117 (
118 const label patchI,
119 const label faceI,
120 const label bandI = 0,
121 vector incomingDirection = Zero,
122 scalar T = 0
123 ) const;
124
125 //- Access boundary transmissivity on patch
127 (
128 const label patchI,
129 const label bandI = 0,
130 vectorField* incomingDirection = nullptr,
131 scalarField* T = nullptr
132 ) const;
133
134 //- Access boundary transmissivity on face
135 scalar faceTransmissivity
136 (
137 const label patchI,
138 const label faceI,
139 const label bandI = 0,
140 vector incomingDirection = Zero,
141 scalar T = 0
142 ) const;
143
144 //- Access boundary diffuse reflectivity on patch
146 (
147 const label patchI,
148 const label bandI = 0,
149 vectorField* incomingDirection = nullptr,
150 scalarField* T = nullptr
151 ) const;
152
153 //- Access boundary diffuse reflectivity on face
155 (
156 const label patchI,
157 const label faceI,
158 const label bandI = 0,
159 vector incomingDirection = Zero,
160 scalar T = 0
161 ) const;
162
163 //- Access boundary specular reflectivity on patch
165 (
166 const label patchI,
167 const label bandI = 0,
168 vectorField* incomingDirection = nullptr,
169 scalarField* T = nullptr
170 ) const;
171
172 //- Access boundary specular reflectivity on face
174 (
175 const label patchI,
176 const label faceI,
177 const label bandI = 0,
178 vector incomingDirection = Zero,
179 scalar T = 0
180 ) const;
181
182
183 //- Destructor
185};
186
187
188// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189
190} // End namespace radiation
191} // End namespace Foam
192
193// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
194
195
196#endif
197
198// ************************************************************************* //
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: List.H:77
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
Definition: MeshObject.H:91
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
tmp< scalarField > absorptivity(const label patchI, const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Access boundary absorptivity on patch.
scalar faceTransmissivity(const label patchI, const label faceI, const label bandI=0, vector incomingDirection=Zero, scalar T=0) const
Access boundary transmissivity on face.
tmp< scalarField > diffReflectivity(const label patchI, const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Access boundary diffuse reflectivity on patch.
scalar faceSpecReflectivity(const label patchI, const label faceI, const label bandI=0, vector incomingDirection=Zero, scalar T=0) const
Access boundary specular reflectivity on face.
tmp< scalarField > emissivity(const label patchI, const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Access boundary emissivity on patch.
TypeName("boundaryRadiationProperties")
scalar faceDiffReflectivity(const label patchI, const label faceI, const label bandI=0, vector incomingDirection=Zero, scalar T=0) const
Access boundary diffuse reflectivity on face.
scalar faceAbsorptivity(const label patchI, const label faceI, const label bandI=0, vector incomingDirection=Zero, scalar T=0) const
Access boundary absorptivity on face.
tmp< scalarField > specReflectivity(const label patchI, const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Access boundary specular reflectivity on patch.
tmp< scalarField > transmissivity(const label patchI, const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Access boundary transmissivity on patch.
scalar faceEmissivity(const label patchI, const label faceI, const label bandI=0, vector incomingDirection=Zero, scalar T=0) const
Access boundary emissivity on face.
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
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73