constantAbsorptionEmission.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) 2011-2015 OpenFOAM Foundation
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::constantAbsorptionEmission
28
29Group
30 grpRadiationAbsorptionEmissionSubModels
31
32Description
33 Constant radiation absorption and emission coefficients for continuous
34 phase
35
36SourceFiles
37 constantAbsorptionEmission.C
38
39\*---------------------------------------------------------------------------*/
40
41#ifndef radiation_constantAbsorptionEmission_H
42#define radiation_constantAbsorptionEmission_H
43
45
46// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48namespace Foam
49{
50namespace radiation
51{
52
53/*---------------------------------------------------------------------------*\
54 Class constantAbsorptionEmission Declaration
55\*---------------------------------------------------------------------------*/
58:
60{
61 // Private data
62
63 //- Absorption model dictionary
64 dictionary coeffsDict_;
65
66 //- Absorption coefficient / [1/m]
68
69 //- Emission coefficient / [1/m]
71
72 //- Emission contribution / [kg/(m s^3)]
74
75
76public:
77
78 //- Runtime type information
79 TypeName("constantAbsorptionEmission");
80
81
82 // Constructors
83
84 //- Construct from components
86
87
88 //- Destructor
89 virtual ~constantAbsorptionEmission() = default;
90
91
92 // Member Functions
93
94 // Access
95
96 // Absorption coefficient
97
98 //- Absorption coefficient for continuous phase
99 tmp<volScalarField> aCont(const label bandI = 0) const;
100
101
102 // Emission coefficient
103
104 //- Emission coefficient for continuous phase
105 tmp<volScalarField> eCont(const label bandI = 0) const;
106
107
108 // Emission contribution
109
110 //- Emission contribution for continuous phase
111 tmp<volScalarField> ECont(const label bandI = 0) const;
112
113
114 // Member Functions
116 inline bool isGrey() const
117 {
118 return true;
119 }
120};
121
122
123// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124
125} // End namespace radiation
126} // End namespace Foam
127
128// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129
130#endif
131
132// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
Model to supply absorption and emission coefficients for radiation modelling.
const fvMesh & mesh() const
Reference to the mesh.
const dictionary & dict() const
Reference to the dictionary.
Constant radiation absorption and emission coefficients for continuous phase.
bool isGrey() const
Flag for whether the absorption/emission is for a grey gas.
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
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.
virtual ~constantAbsorptionEmission()=default
Destructor.
TypeName("constantAbsorptionEmission")
Runtime type information.
A class for managing temporary objects.
Definition: tmp.H:65
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73