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 -------------------------------------------------------------------------------
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::boundaryRadiationProperties
28 
29 Description
30  Boundary radiation properties holder
31 
32 SourceFiles
33  boundaryRadiationProperties.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef boundaryRadiationProperties_H
38 #define boundaryRadiationProperties_H
39 
40 #include "MeshObject.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 class fvMesh;
49 
50 namespace radiation
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class boundaryRadiationProperties Declaration
55 \*---------------------------------------------------------------------------*/
56 
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 
73 public:
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
154  scalar faceDiffReflectivity
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
173  scalar faceSpecReflectivity
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
184  ~boundaryRadiationProperties() = default;
185 };
186 
187 
188 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 
190 } // End namespace radiation
191 } // End namespace Foam
192 
193 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
194 
195 
196 #endif
197 
198 // ************************************************************************* //
boundaryRadiationPropertiesPatch.H
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::Zero
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
Foam::radiation::boundaryRadiationProperties::faceEmissivity
scalar faceEmissivity(const label patchI, const label faceI, const label bandI=0, vector incomingDirection=Zero, scalar T=0) const
Access boundary emissivity on face.
Definition: boundaryRadiationProperties.C:139
Foam::radiation::boundaryRadiationProperties::boundaryRadiationProperties
boundaryRadiationProperties(const fvMesh &)
Construct given fvMesh.
Definition: boundaryRadiationProperties.C:45
Foam::radiation::boundaryRadiationProperties::faceSpecReflectivity
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.
Definition: boundaryRadiationProperties.C:375
Foam::radiation::boundaryRadiationProperties::specReflectivity
tmp< scalarField > specReflectivity(const label patchI, const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Access boundary specular reflectivity on patch.
Definition: boundaryRadiationProperties.C:347
Foam::radiation::boundaryRadiationProperties::faceTransmissivity
scalar faceTransmissivity(const label patchI, const label faceI, const label bandI=0, vector incomingDirection=Zero, scalar T=0) const
Access boundary transmissivity on face.
Definition: boundaryRadiationProperties.C:257
Foam::radiation::boundaryRadiationProperties::emissivity
tmp< scalarField > emissivity(const label patchI, const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Access boundary emissivity on patch.
Definition: boundaryRadiationProperties.C:111
Foam::radiation::boundaryRadiationProperties::faceDiffReflectivity
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.
Definition: boundaryRadiationProperties.C:316
Foam::Field< vector >
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))
Foam::radiation::boundaryRadiationProperties
Boundary radiation properties holder.
Definition: boundaryRadiationProperties.H:56
Foam::radiation::boundaryRadiationProperties::~boundaryRadiationProperties
~boundaryRadiationProperties()=default
Destructor.
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::radiation::boundaryRadiationProperties::faceAbsorptivity
scalar faceAbsorptivity(const label patchI, const label faceI, const label bandI=0, vector incomingDirection=Zero, scalar T=0) const
Access boundary absorptivity on face.
Definition: boundaryRadiationProperties.C:198
Foam::Vector< scalar >
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: BitOps.H:63
Foam::radiation::boundaryRadiationProperties::absorptivity
tmp< scalarField > absorptivity(const label patchI, const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Access boundary absorptivity on patch.
Definition: boundaryRadiationProperties.C:170
MeshObject.H
Foam::MeshObject
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
Definition: MeshObject.H:88
Foam::radiation::boundaryRadiationProperties::transmissivity
tmp< scalarField > transmissivity(const label patchI, const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Access boundary transmissivity on patch.
Definition: boundaryRadiationProperties.C:229
Foam::radiation::boundaryRadiationProperties::diffReflectivity
tmp< scalarField > diffReflectivity(const label patchI, const label bandI=0, vectorField *incomingDirection=nullptr, scalarField *T=nullptr) const
Access boundary diffuse reflectivity on patch.
Definition: boundaryRadiationProperties.C:288
Foam::radiation::boundaryRadiationProperties::TypeName
TypeName("boundaryRadiationProperties")