uHomogeneousMixture.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::uHomogeneousMixture
26 
27 Description
28  Unburnt gas mixture for homogeneous lean, stoichiometric or rich conditions
29 
30 SourceFiles
31  uHomogeneousMixture.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef uHomogeneousMixture_H
36 #define uHomogeneousMixture_H
37 
38 #include "uMixture.H"
39 #include "speciesTable.H"
40 #include "FieldListSlice.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class uHomogeneousMixture Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
53  public uMixture
54 {
55 protected:
56 
57  // Protected Data
58 
59  //- Return the fuel-oxidant equivalence ratio
60  scalar Phi_;
61 
62 
63 public:
64 
65  //- Runtime type information
66  ClassName("uHomogeneous");
67 
68 
69  // Constructors
70 
71  //- Construct from a dictionary
73 
74  //- Disallow default bitwise copy construction
76 
77 
78  //- Destructor
79  virtual ~uHomogeneousMixture()
80  {}
81 
82 
83  // Member Functions
84 
85  //- Return the mixture type name
86  virtual const word& mixtureType() const
87  {
88  return typeName;
89  }
90 
91  //- Return the table of species
92  const speciesTable& species() const
93  {
94  return speciesTable::null;
95  }
96 
97  //- Access the specie active flags
98  const boolList& speciesActive() const
99  {
101  return boolList::null();
102  }
103 
104  //- Access the specie active flags
106  {
108  return const_cast<boolList&>(boolList::null());
109  }
110 
111  //- Return the fuel-oxidant equivalence ratio
112  scalar Phi(const scalarFieldListSlice& Yu) const
113  {
114  return Phi_;
115  }
116 
117  //- Read dictionary
118  void read(const dictionary&);
119 
120 
121  // Member Operators
122 
123  //- Disallow default bitwise assignment
124  void operator=(const uHomogeneousMixture&) = delete;
125 };
126 
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 } // End namespace Foam
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 #endif
135 
136 // ************************************************************************* //
static const List< bool > & null()
Return a null List.
Definition: ListI.H:118
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.
static const hashedWordList null
An empty hashedWordList.
Unburnt gas mixture for homogeneous lean, stoichiometric or rich conditions.
virtual ~uHomogeneousMixture()
Destructor.
scalar Phi_
Return the fuel-oxidant equivalence ratio.
scalar Phi(const scalarFieldListSlice &Yu) const
Return the fuel-oxidant equivalence ratio.
virtual const word & mixtureType() const
Return the mixture type name.
uHomogeneousMixture(const dictionary &)
Construct from a dictionary.
const boolList & speciesActive() const
Access the specie active flags.
void read(const dictionary &)
Read dictionary.
const speciesTable & species() const
Return the table of species.
ClassName("uHomogeneous")
Runtime type information.
void operator=(const uHomogeneousMixture &)=delete
Disallow default bitwise assignment.
Unburnt gas mixture base class.
Definition: uMixture.H:49
A class for handling words, derived from string.
Definition: word.H:63
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:381
Namespace for OpenFOAM.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.