mixtureFractionSoot.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) 2013-2016 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::mixtureFractionSoot
28
29Group
30 grpRadiationSootSubModels
31
32Description
33 This soot model is purely an state model. The amount of soot produced is
34 determined by a single step chemistry as :
35
36 nuf Fuel + nuOx Ox = nuP P + nuSoot soot
37
38 nuSoot is prescribed by the user.
39
40 The single step chemistry used is read from the combustion.
41 The soot is not considered into the thermodynamics of the system and it
42 is not considered as an extra specie in the solver.
43
44 The spacial distribution is given by the normalization of the first product
45 on the rhs of the reaction by default or it can be added as input.
46
47 The input dictionary reads like in the radiationProperties dictionary:
48
49 sootModel mixtureFractionSoot<gasHThermoPhysics>;
50
51 mixtureFractionSootCoeffs
52 {
53 nuSoot 0.015;
54 Wsoot 12;
55 mappingField P;
56 }
57
58SourceFiles
59 mixtureFractionSoot.C
60
61\*---------------------------------------------------------------------------*/
62
63#ifndef mixtureFractionSoot_H
64#define mixtureFractionSoot_H
65
67#include "sootModel.H"
68#include "HashTable.H"
69
70#include "fluidThermo.H"
72
73// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74
75namespace Foam
76{
77
78namespace radiation
79{
80
81/*---------------------------------------------------------------------------*\
82 Class mixtureFractionSoot Declaration
83\*---------------------------------------------------------------------------*/
84template<class ThermoType>
86:
87 public sootModel
88{
89
90 // Static functions
91
92 //- Check mixture in thermo
93 static const singleStepReactingMixture<ThermoType>& checkThermo
94 (
95 const fluidThermo&
96 );
97
98
99 // Private data
100
101 //- Soot mass fraction
102 volScalarField soot_;
103
104 //- Soot model dictionary
105 dictionary coeffsDict_;
106
107 //- Soot yield
108 scalar nuSoot_;
109
110 //- Soot molecular weight
111 scalar Wsoot_;
112
113 //- Maximum soot mass concentration at stoichiometric
114 scalar sootMax_;
115
116 //- Name of the field mapping the soot
117 word mappingFieldName_;
118
119 //- Maximum value of the map field
120 scalar mapFieldMax_;
121
122 //- Thermo package
123 const fluidThermo& thermo_;
124
125 //- Auto Ptr to singleStepReactingMixture
127
128
129public:
130
131 //- Runtime type information
132 TypeName("mixtureFractionSoot");
133
134
135 // Constructors
136
137 //- Construct from components
139 (
140 const dictionary& dict,
141 const fvMesh& mesh,
142 const word& modelType
143 );
144
145
146 //- Destructor
147 virtual ~mixtureFractionSoot();
148
149
150 // Member Functions
151
152 // Edit
153
154 //- Main update/correction routine
155 virtual void correct();
156
157
158 // Access
159
160 //- Return Ysoot
161 const volScalarField& soot() const
162 {
163 return soot_;
164 }
165
166};
167
168
169// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170
171} // End namespace Foam
172} // End namespace radiation
173
174// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
175
176#ifdef NoRepository
177 #include "mixtureFractionSoot.C"
178#endif
179
180// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
181
182#endif
183
184// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Fundamental fluid thermodynamic properties.
Definition: fluidThermo.H:56
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
This soot model is purely an state model. The amount of soot produced is determined by a single step ...
TypeName("mixtureFractionSoot")
Runtime type information.
virtual void correct()
Main update/correction routine.
const volScalarField & soot() const
Return Ysoot.
Base class for soor models.
Definition: sootModel.H:56
const fvMesh & mesh() const
Reference to the mesh.
Definition: sootModel.H:118
const dictionary & dict() const
Reference to the dictionary.
Definition: sootModel.H:124
Single step reacting mixture.
A class for handling words, derived from Foam::string.
Definition: word.H:68
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