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 | Copyright (C) 2015 OpenCFD Ltd
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::fv::boundaryRadiationProperties
26 
27 Description
28  Boundary radiation properties holder
29 
30 
31 SourceFiles
32  boundaryRadiationProperties.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef boundaryRadiationProperties_H
37 #define boundaryRadiationProperties_H
38 
39 #include "MeshObject.H"
40 #include "GeometricField.H"
41 #include "volMesh.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 
67  // Private data
68 
69  //- AutoPtr to volSacalarField properties
71 
72 
73  // Private member functions
74 
75  //- Create IO object if dictionary is present
76  IOobject createIOobject(const fvMesh& mesh, const word) const;
77 
78 
79 public:
80 
81  // Declare name of the class and its debug switch
82  TypeName("boundaryRadiationProperties");
83 
84 
85  // Constructors
86 
87  //- Construct given fvMesh and IOobject
89 
90 
91  // Member Functions
92 
93  //- Access boundary emissivity on patch
95  (
96  const label patchId,
97  const label bandI = 0
98  ) const;
99 
100 
101  //- Access boundary absorptivity on patch
103  (
104  const label patchId,
105  const label bandI = 0
106  ) const;
107 
108 
109  //- Access boundary transmissivity on patch
111  (
112  const label patchId,
113  const label bandI = 0
114  ) const;
115 
116  //- Access boundary reflectivity on patch
118  (
119  const label patchId,
120  const label bandI = 0
121  ) const;
122 
123 
124  //- Access to radBoundaryProperties
125  const volScalarField& radBoundaryProperties() const;
126 
127 
128  //- Destructor
130 
131 };
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace radiation
136 } // End namespace Foam
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 
141 #endif
142 
143 // ************************************************************************* //
Foam::radiation::boundaryRadiationProperties::emissivity
tmp< scalarField > emissivity(const label patchId, const label bandI=0) const
Access boundary emissivity on patch.
Definition: boundaryRadiationProperties.C:110
Foam::IOobject
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:91
Foam::radiation::boundaryRadiationProperties::absorptivity
tmp< scalarField > absorptivity(const label patchId, const label bandI=0) const
Access boundary absorptivity on patch.
Definition: boundaryRadiationProperties.C:133
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::radiation::boundaryRadiationProperties::createIOobject
IOobject createIOobject(const fvMesh &mesh, const word) const
Create IO object if dictionary is present.
Definition: boundaryRadiationProperties.C:44
Foam::radiation::boundaryRadiationProperties::radBoundaryProperties_
autoPtr< volScalarField > radBoundaryProperties_
AutoPtr to volSacalarField properties.
Definition: boundaryRadiationProperties.H:69
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::radiation::boundaryRadiationProperties::radBoundaryProperties
const volScalarField & radBoundaryProperties() const
Access to radBoundaryProperties.
Definition: boundaryRadiationProperties.C:103
volMesh.H
Foam::radiation::boundaryRadiationProperties::boundaryRadiationProperties
boundaryRadiationProperties(const fvMesh &)
Construct given fvMesh and IOobject.
Definition: boundaryRadiationProperties.C:73
Foam::radiation::boundaryRadiationProperties::transmissivity
tmp< scalarField > transmissivity(const label patchId, const label bandI=0) const
Access boundary transmissivity on patch.
Definition: boundaryRadiationProperties.C:156
Foam::radiation::boundaryRadiationProperties::reflectivity
tmp< scalarField > reflectivity(const label patchId, const label bandI=0) const
Access boundary reflectivity on patch.
Definition: boundaryRadiationProperties.C:179
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
Foam::MeshObject< fvMesh, Foam::GeometricMeshObject, boundaryRadiationProperties >::mesh
const fvMesh & mesh() const
Definition: MeshObject.H:144
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Foam::radiation::boundaryRadiationProperties
Definition: boundaryRadiationProperties.H:56
Foam::radiation::boundaryRadiationProperties::~boundaryRadiationProperties
virtual ~boundaryRadiationProperties()
Destructor.
Definition: boundaryRadiationProperties.C:203
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
GeometricField.H
Foam::autoPtr
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:117
MeshObject.H
Foam::MeshObject
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
Definition: MeshObject.H:81
patchId
label patchId(-1)
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::radiation::boundaryRadiationProperties::TypeName
TypeName("boundaryRadiationProperties")