uInhomogeneousEGRMixture.H
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) 2025-2026 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 Class
25  Foam::uInhomogeneousEGRMixture
26 
27 Description
28  Unburnt gas combustion mixture for inhomogeneous lean, stoichiometric
29  or rich conditions with exhaust gas recirculation
30 
31  in which the fuel mass-fraction \c fu and exhaust gas recirculation
32  mass-fraction \c egr define the composition.
33 
34 SourceFiles
35  uInhomogeneousEGRMixture.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef uInhomogeneousEGRMixture_H
40 #define uInhomogeneousEGRMixture_H
41 
42 #include "uMixture.H"
43 #include "speciesTable.H"
44 #include "FieldListSlice.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class uInhomogeneousEGRMixture Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
57  public uMixture
58 {
59 protected:
60 
61  // Protected Data
62 
63  //- Table of specie names
65 
66  //- Stoichiometric air/fuel ratio
67  scalar stoicRatio_;
68 
69  //- List of specie active flags
71 
72 
73 public:
74 
75  //- Runtime type information
76  ClassName("uInhomogeneousEGR");
77 
78  //- Specie indices
79  enum species { FU, EGR };
80 
81 
82  // Constructors
83 
84  //- Construct from a dictionary
86 
87  //- Disallow default bitwise copy construction
89 
90 
91  // Member Functions
92 
93  //- Return the mixture type name
94  virtual const word& mixtureType() const
95  {
96  return typeName;
97  }
98 
99  //- Return the table of species
100  const speciesTable& species() const
101  {
102  return species_;
103  }
104 
105  //- Access the specie active flags
106  const boolList& speciesActive() const
107  {
108  return active_;
109  }
110 
111  //- Access the specie active flags
113  {
114  return active_;
115  }
116 
117  //- Return the stoichiometric air/fuel ratio
118  scalar stoicRatio() const
119  {
120  return stoicRatio_;
121  }
122 
123  //- Return the fuel-oxidant equivalence ratio
124  scalar Phi(const scalarFieldListSlice& Yu) const;
125 
126  //- Read dictionary
127  void read(const dictionary&);
128 
129 
130  // Member Operators
131 
132  //- Disallow default bitwise assignment
133  void operator=(const uInhomogeneousEGRMixture&) = delete;
134 };
135 
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 } // End namespace Foam
140 
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 
143 #endif
144 
145 // ************************************************************************* //
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
A wordList with hashed indices for faster lookup by name.
Unburnt gas combustion mixture for inhomogeneous lean, stoichiometric or rich conditions with exhaust...
ClassName("uInhomogeneousEGR")
Runtime type information.
scalar stoicRatio_
Stoichiometric air/fuel ratio.
void operator=(const uInhomogeneousEGRMixture &)=delete
Disallow default bitwise assignment.
virtual const word & mixtureType() const
Return the mixture type name.
scalar Phi(const scalarFieldListSlice &Yu) const
Return the fuel-oxidant equivalence ratio.
speciesTable species_
Table of specie names.
const boolList & speciesActive() const
Access the specie active flags.
void read(const dictionary &)
Read dictionary.
boolList active_
List of specie active flags.
uInhomogeneousEGRMixture(const dictionary &)
Construct from a dictionary.
scalar stoicRatio() const
Return the stoichiometric air/fuel ratio.
Unburnt gas mixture base class.
Definition: uMixture.H:49
A class for handling words, derived from string.
Definition: word.H:63
Namespace for OpenFOAM.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.