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 -------------------------------------------------------------------------------
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::mixtureFractionSoot
28 
29 Group
30  grpRadiationSootSubModels
31 
32 Description
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 
58 SourceFiles
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 
75 namespace Foam
76 {
77 
78 namespace radiation
79 {
80 
81 /*---------------------------------------------------------------------------*\
82  Class mixtureFractionSoot Declaration
83 \*---------------------------------------------------------------------------*/
84 template<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 
129 public:
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 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
mixtureFractionSoot.C
HashTable.H
fluidThermo.H
Foam::fluidThermo
Fundamental fluid thermodynamic properties.
Definition: fluidThermo.H:52
Foam::radiation::mixtureFractionSoot::TypeName
TypeName("mixtureFractionSoot")
Runtime type information.
sootModel.H
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Foam::radiation::sootModel::mesh
const fvMesh & mesh() const
Reference to the mesh.
Definition: sootModel.H:118
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
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::mixtureFractionSoot::~mixtureFractionSoot
virtual ~mixtureFractionSoot()
Destructor.
Definition: mixtureFractionSoot.C:146
singleStepReactingMixture.H
Foam::radiation::sootModel
Base class for soor models.
Definition: sootModel.H:55
Foam::radiation::sootModel::dict
const dictionary & dict() const
Reference to the dictionary.
Definition: sootModel.H:124
interpolationLookUpTable.H
Foam::singleStepReactingMixture
Single step reacting mixture.
Definition: singleStepReactingMixture.H:55
Foam::radiation::mixtureFractionSoot::mixtureFractionSoot
mixtureFractionSoot(const dictionary &dict, const fvMesh &mesh, const word &modelType)
Construct from components.
Definition: mixtureFractionSoot.C:69
Foam::radiation::mixtureFractionSoot
This soot model is purely an state model. The amount of soot produced is determined by a single step ...
Definition: mixtureFractionSoot.H:84
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::radiation::mixtureFractionSoot::correct
virtual void correct()
Main update/correction routine.
Definition: mixtureFractionSoot.C:153
Foam::radiation::mixtureFractionSoot::soot
const volScalarField & soot() const
Return Ysoot.
Definition: mixtureFractionSoot.H:160