absorptionEmissionModel.C
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
26\*---------------------------------------------------------------------------*/
27
29
30// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31
32namespace Foam
33{
34 namespace radiation
35 {
38 }
39}
40
41// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
42
44(
45 const dictionary& dict,
46 const fvMesh& mesh
47)
48:
49 dict_(dict),
50 mesh_(mesh)
51{}
52
53
54// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
55
57{}
58
59
60// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
61
64{
65 return aDisp(bandI) + aCont(bandI);
66}
67
68
71{
73 (
75 (
77 (
78 "aCont",
79 mesh_.time().timeName(),
80 mesh_,
83 false
84 ),
85 mesh_,
87 )
88 );
89}
90
91
94{
96 (
98 (
100 (
101 "aDisp",
102 mesh_.time().timeName(),
103 mesh_,
106 false
107 ),
108 mesh_,
110 )
111 );
112}
113
114
117{
118 return eDisp(bandI) + eCont(bandI);
119}
120
121
124{
126 (
128 (
130 (
131 "eCont",
132 mesh_.time().timeName(),
133 mesh_,
136 false
137 ),
138 mesh_,
140 )
141 );
142}
143
144
147{
149 (
151 (
153 (
154 "eDisp",
155 mesh_.time().timeName(),
156 mesh_,
159 false
160 ),
161 mesh_,
163 )
164 );
165}
166
167
170{
171 return EDisp(bandI) + ECont(bandI);
172}
173
174
177{
179 (
181 (
183 (
184 "ECont",
185 mesh_.time().timeName(),
186 mesh_,
189 false
190 ),
191 mesh_,
193 )
194 );
195}
196
197
200{
202 (
204 (
206 (
207 "EDisp",
208 mesh_.time().timeName(),
209 mesh_,
212 false
213 ),
214 mesh_,
216 )
217 );
218}
219
220
222{
223 return pTraits<label>::one;
224}
225
226
229{
231}
232
233
235{
236 return false;
237}
238
239
241(
244) const
245{
246 a = this->a();
247 aj[0] = a;
248}
249
250
251// ************************************************************************* //
label n
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition: PtrList.H:73
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
const STLpoint & a() const
Definition: STLtriangleI.H:68
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
Definition: Vector2D.H:58
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
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
Definition: one.H:62
Model to supply absorption and emission coefficients for radiation modelling.
virtual bool isGrey() const
Flag for whether the absorption/emission is for a grey gas.
virtual const Vector2D< scalar > & bands(const label n) const
Const access to the bands - defaults to Vector2D::one for grey.
virtual tmp< volScalarField > aDisp(const label bandI=0) const
Absorption coefficient for dispersed phase.
virtual tmp< volScalarField > E(const label bandI=0) const
Emission contribution (net)
virtual tmp< volScalarField > EDisp(const label bandI=0) const
Emission contribution for dispersed phase.
virtual label nBands() const
Const access to the number of bands - defaults to 1 for grey.
virtual tmp< volScalarField > eDisp(const label bandI=0) const
Return emission coefficient for dispersed phase.
virtual tmp< volScalarField > eCont(const label bandI=0) const
Return emission coefficient for continuous phase.
virtual tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
virtual tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
A class for managing temporary objects.
Definition: tmp.H:65
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition: className.H:121
dynamicFvMesh & mesh
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
const dimensionedScalar e
Elementary charge.
Namespace for OpenFOAM.
const dimensionSet dimless
Dimensionless.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:52
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:53
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:51
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
dictionary dict