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-2019 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::radiationModels::absorptionEmissionModels::constant
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 radiationModels
46 {
47 namespace absorptionEmissionModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class constant Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class constant
55 :
57 {
58  // Private Data
59 
60  //- Absorption model dictionary
61  dictionary coeffsDict_;
62 
63  //- Absorption coefficient / [1/m]
65 
66  //- Emission coefficient / [1/m]
68 
69  //- Emission contribution / [kg/m/s^3]
71 
72 
73 public:
74 
75  //- Runtime type information
76  TypeName("constant");
77 
78 
79  // Constructors
80 
81  //- Construct from components
82  constant(const dictionary& dict, const fvMesh& mesh);
83 
84 
85  //- Destructor
86  virtual ~constant();
87 
88 
89  // Member Functions
90 
91  // Access
92 
93  // Absorption coefficient
94 
95  //- Absorption coefficient for continuous phase
96  tmp<volScalarField> aCont(const label bandI = 0) const;
97 
98 
99  // Emission coefficient
100 
101  //- Emission coefficient for continuous phase
102  tmp<volScalarField> eCont(const label bandI = 0) const;
103 
104 
105  // Emission contribution
106 
107  //- Emission contribution for continuous phase
108  tmp<volScalarField> ECont(const label bandI = 0) const;
109 
110 
111  // Member Functions
112 
113  inline bool isGrey() const
114  {
115  return true;
116  }
117 };
118 
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 } // End namespace absorptionEmissionModels
123 } // End namespace radiationModels
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:99
Model to supply absorption and emission coefficients for radiation modelling.
const dictionary & dict() const
Reference to the dictionary.
const fvMesh & mesh() const
Reference to the mesh.
Constant radiation absorption and emission coefficients for continuous phase.
bool isGrey() const
Flag for whether the absorption/emission is for a grey gas.
constant(const dictionary &dict, const fvMesh &mesh)
Construct from components.
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
TypeName("constant")
Runtime type information.
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
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