constantAbsorptionEmission.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
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::radiation::constantAbsorptionEmission
26 
27 Description
28  Constant radiation absorption and emission coefficients for continuous
29  phase
30 
31 SourceFiles
32  constantAbsorptionEmission.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef constantAbsorptionEmission_H
37 #define constantAbsorptionEmission_H
38 
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace radiation
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class constantAbsorptionEmission Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
55 {
56  // Private data
57 
58  //- Absorption model dictionary
59  dictionary coeffsDict_;
60 
61  //- Absorption coefficient / [1/m]
63 
64  //- Emission coefficient / [1/m]
66 
67  //- Emission contribution / [kg/(m s^3)]
69 
70 
71 public:
72 
73  //- Runtime type information
74  TypeName("constantAbsorptionEmission");
75 
76 
77  // Constructors
78 
79  //- Construct from components
81 
82 
83  //- Destructor
85 
86 
87  // Member Functions
88 
89  // Access
90 
91  // Absorption coefficient
92 
93  //- Absorption coefficient for continuous phase
94  tmp<volScalarField> aCont(const label bandI = 0) const;
95 
96 
97  // Emission coefficient
98 
99  //- Emission coefficient for continuous phase
100  tmp<volScalarField> eCont(const label bandI = 0) const;
101 
102 
103  // Emission contribution
104 
105  //- Emission contribution for continuous phase
106  tmp<volScalarField> ECont(const label bandI = 0) const;
107 
108 
109  // Member Functions
111  inline bool isGrey() const
112  {
113  return true;
114  }
115 };
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace radiation
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
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
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
const fvMesh & mesh() const
Reference to the mesh.
const dictionary & dict() const
Reference to the dictionary.
Model to supply absorption and emission coefficients for radiation modelling.
constantAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
Construct from components.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
bool isGrey() const
Flag for whether the absorption/emission is for a grey gas.
A class for managing temporary objects.
Definition: PtrList.H:53
TypeName("constantAbsorptionEmission")
Runtime type information.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Namespace for OpenFOAM.
Constant radiation absorption and emission coefficients for continuous phase.