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 -------------------------------------------------------------------------------
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::constantAbsorptionEmission
28 
29 Group
30  grpRadiationAbsorptionEmissionSubModels
31 
32 Description
33  Constant radiation absorption and emission coefficients for continuous
34  phase
35 
36 SourceFiles
37  constantAbsorptionEmission.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef radiation_constantAbsorptionEmission_H
42 #define radiation_constantAbsorptionEmission_H
43 
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 namespace radiation
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class constantAbsorptionEmission Declaration
55 \*---------------------------------------------------------------------------*/
56 
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 
76 public:
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
115 
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 // ************************************************************************* //
Foam::radiation::constantAbsorptionEmission::isGrey
bool isGrey() const
Flag for whether the absorption/emission is for a grey gas.
Definition: constantAbsorptionEmission.H:115
Foam::radiation::constantAbsorptionEmission::~constantAbsorptionEmission
virtual ~constantAbsorptionEmission()=default
Destructor.
Foam::radiation::absorptionEmissionModel::dict
const dictionary & dict() const
Reference to the dictionary.
Definition: absorptionEmissionModel.H:121
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::radiation::absorptionEmissionModel::mesh
const fvMesh & mesh() const
Reference to the mesh.
Definition: absorptionEmissionModel.H:115
Foam::radiation::constantAbsorptionEmission::constantAbsorptionEmission
constantAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
Construct from components.
Definition: constantAbsorptionEmission.C:52
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::dimensioned< scalar >
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::constantAbsorptionEmission::TypeName
TypeName("constantAbsorptionEmission")
Runtime type information.
absorptionEmissionModel.H
Foam::radiation::constantAbsorptionEmission::aCont
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
Definition: constantAbsorptionEmission.C:68
Foam::radiation::constantAbsorptionEmission
Constant radiation absorption and emission coefficients for continuous phase.
Definition: constantAbsorptionEmission.H:56
Foam::radiation::absorptionEmissionModel
Model to supply absorption and emission coefficients for radiation modelling.
Definition: absorptionEmissionModel.H:54
Foam::radiation::constantAbsorptionEmission::ECont
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
Definition: constantAbsorptionEmission.C:118
Foam::radiation::constantAbsorptionEmission::eCont
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
Definition: constantAbsorptionEmission.C:93