bInhomogeneousMixture.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::bInhomogeneousMixture
26 
27 Description
28  Burnt gas combustion mixture for inhomogeneous lean, stoichiometric
29  or rich conditions
30 
31  in which the unburnt fuel mass-fraction \c ft (mixture fraction) defines the
32  composition.
33 
34 SourceFiles
35  bInhomogeneousMixture.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef bInhomogeneousMixture_H
40 #define bInhomogeneousMixture_H
41 
42 #include "bMixture.H"
43 #include "speciesTable.H"
44 #include "boolList.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class bInhomogeneousMixture Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
57  public bMixture
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("bInhomogeneous");
77 
78  //- Specie indices
79  enum species { FT };
80 
81 
82  // Constructors
83 
84  //- Construct from a dictionary
86 
87  //- Disallow default bitwise copy construction
89 
90 
91  //- Destructor
92  virtual ~bInhomogeneousMixture()
93  {}
94 
95 
96  // Member Functions
97 
98  //- Return the mixture type name
99  virtual const word& mixtureType() const
100  {
101  return typeName;
102  }
103 
104  //- Return the table of species
105  const speciesTable& species() const
106  {
107  return species_;
108  }
109 
110  //- Access the specie active flags
111  const boolList& speciesActive() const
112  {
113  return active_;
114  }
115 
116  //- Access the specie active flags
118  {
119  return active_;
120  }
121 
122  //- Read dictionary
123  void read(const dictionary&);
124 
125 
126  // Member Operators
127 
128  //- Disallow default bitwise assignment
129  void operator=(const bInhomogeneousMixture&) = delete;
130 };
131 
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace Foam
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #endif
140 
141 // ************************************************************************* //
Burnt gas combustion mixture for inhomogeneous lean, stoichiometric or rich conditions.
void operator=(const bInhomogeneousMixture &)=delete
Disallow default bitwise assignment.
scalar stoicRatio_
Stoichiometric air/fuel ratio.
bInhomogeneousMixture(const dictionary &)
Construct from a dictionary.
virtual ~bInhomogeneousMixture()
Destructor.
ClassName("bInhomogeneous")
Runtime type information.
virtual const word & mixtureType() const
Return the mixture type name.
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.
Burnt gas mixture base class.
Definition: bMixture.H:49
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.
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.