wideBandCombustion.C
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 \*---------------------------------------------------------------------------*/
25 
26 #include "wideBandCombustion.H"
27 #include "combustionModel.H"
29 
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 namespace radiationModels
35 {
36 namespace absorptionEmissionModels
37 {
38  defineTypeNameAndDebug(wideBandCombustion, 0);
39 
41  (
42  absorptionEmissionModel,
43  wideBandCombustion,
44  dictionary
45  );
46 }
47 }
48 }
49 
50 
51 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
52 
55 (
56  const dictionary& dict,
57  const fvMesh& mesh
58 )
59 :
60  wideBand(dict, mesh, typeName)
61 {
62  label bandi = 0;
63  forAllConstIter(dictionary, coeffsDict_, iter)
64  {
65  if (!iter().isDict()) continue;
66 
67  iter().dict().lookup("EhrrCoeff") >> iEhrrCoeffs_[bandi];
68 
69  ++ bandi;
70  }
71 }
72 
73 
74 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
75 
78 {}
79 
80 
81 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
82 
85 (
86  const label bandi
87 ) const
88 {
90 
92  E.ref() +=
93  iEhrrCoeffs_[bandi]
94  *mesh_.lookupObject<combustionModel>(name).Qdot()
95  *(iBands_[bandi][1] - iBands_[bandi][0])
96  /totalWaveLength_;
97 
98  return E;
99 }
100 
101 
102 // ************************************************************************* //
tmp< volScalarField > ECont(const label bandi=0) const
Emission contribution for continuous phase.
addToRunTimeSelectionTable(absorptionEmissionModel, greyMeanCombustion, dictionary)
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Definition: UList.H:477
T & ref() const
Return non-const reference or generate a fatal error.
Definition: tmpI.H:181
scalar Qdot
Definition: solveChemistry.H:2
Macros for easy insertion into run-time selection tables.
A class for handling words, derived from string.
Definition: word.H:59
Base class for combustion models.
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:95
tmp< volScalarField > ECont(const label bandi=0) const
Emission contribution for continuous phase.
Definition: wideBand.C:283
A class for managing temporary objects.
Definition: PtrList.H:53
wideBandCombustion(const dictionary &dict, const fvMesh &mesh)
Construct from components.
Namespace for OpenFOAM.
static const word combustionPropertiesName
Default combustionProperties dictionary name.