uInhomogeneousMixture.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::uInhomogeneousMixture
26 
27 Description
28  Unburnt gas combustion mixture for inhomogeneous lean, stoichiometric
29  or rich conditions
30 
31  in which the fuel mass-fraction \c fu defines the composition.
32 
33 SourceFiles
34  uInhomogeneousMixture.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef uInhomogeneousMixture_H
39 #define uInhomogeneousMixture_H
40 
41 #include "uMixture.H"
42 #include "speciesTable.H"
43 #include "FieldListSlice.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class uInhomogeneousMixture Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  public uMixture
57 {
58 protected:
59 
60  // Protected Data
61 
62  //- Table of specie names
64 
65  //- Stoichiometric air/fuel ratio
66  scalar stoicRatio_;
67 
68  //- List of specie active flags
70 
71 
72 public:
73 
74  //- Runtime type information
75  ClassName("uInhomogeneous");
76 
77  //- Specie indices
78  enum species { FU };
79 
80 
81  // Constructors
82 
83  //- Construct from a dictionary
85 
86  //- Disallow default bitwise copy construction
88 
89 
90  // Member Functions
91 
92  //- Return the mixture type name
93  virtual const word& mixtureType() const
94  {
95  return typeName;
96  }
97 
98  //- Return the table of species
99  const speciesTable& species() const
100  {
101  return species_;
102  }
103 
104  //- Access the specie active flags
105  const boolList& speciesActive() const
106  {
107  return active_;
108  }
109 
110  //- Access the specie active flags
112  {
113  return active_;
114  }
115 
116  //- Return the stoichiometric air/fuel ratio
117  scalar stoicRatio() const
118  {
119  return stoicRatio_;
120  }
121 
122  //- Return the fuel-oxidant equivalence ratio
123  scalar Phi(const scalarFieldListSlice& Yu) const;
124 
125  //- Read dictionary
126  void read(const dictionary&);
127 
128 
129  // Member Operators
130 
131  //- Disallow default bitwise assignment
132  void operator=(const uInhomogeneousMixture&) = delete;
133 };
134 
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 } // End namespace Foam
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 #endif
143 
144 // ************************************************************************* //
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.
scalar stoicRatio_
Stoichiometric air/fuel ratio.
uInhomogeneousMixture(const dictionary &)
Construct from a dictionary.
ClassName("uInhomogeneous")
Runtime type information.
virtual const word & mixtureType() const
Return the mixture type name.
scalar Phi(const scalarFieldListSlice &Yu) const
Return the fuel-oxidant equivalence ratio.
void operator=(const uInhomogeneousMixture &)=delete
Disallow default bitwise assignment.
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.
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.