uMulticomponentMixture.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) 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::uMulticomponentMixture
26 
27 Description
28  Unburnt gas combustion multicomponent mixture for a single fuel specie
29 
30  to provide composition support for unburnt chemistry integration for
31  e.g. knock simulations.
32 
33 SourceFiles
34  uMulticomponentMixture.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef uMulticomponentMixture_H
39 #define uMulticomponentMixture_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 uMulticomponentMixture Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  public uMixture
57 {
58  // Private Data
59 
60  //- Fuel specie index
61  label fu_;
62 
63  //- Stoichiometric air/fuel ratio
64  scalar stoicRatio_;
65 
66 
67 public:
68 
69  //- Runtime type information
70  ClassName("uMulticomponent");
71 
72 
73  // Constructors
74 
75  //- Construct from the speciesTable and dictionary
77  (
78  const speciesTable& species,
79  const dictionary&
80  );
81 
82  //- Disallow default bitwise copy construction
84 
85 
86  // Member Functions
87 
88  //- Return the mixture type name
89  virtual const word& mixtureType() const
90  {
91  return typeName;
92  }
93 
94  //- Return the fuel specie index
95  label fu() const
96  {
97  return fu_;
98  }
99 
100  //- Return the stoichiometric air/fuel ratio
101  scalar stoicRatio() const
102  {
103  return stoicRatio_;
104  }
105 
106  //- Return the fuel-oxidant equivalence ratio
107  scalar Phi(const scalarFieldListSlice& Yu) const;
108 
109 
110  // Member Operators
111 
112  //- Disallow default bitwise assignment
113  void operator=(const uMulticomponentMixture&) = delete;
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace Foam
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
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 mixture base class.
Definition: uMixture.H:49
Unburnt gas combustion multicomponent mixture for a single fuel specie.
void operator=(const uMulticomponentMixture &)=delete
Disallow default bitwise assignment.
ClassName("uMulticomponent")
Runtime type information.
label fu() const
Return the fuel specie index.
virtual const word & mixtureType() const
Return the mixture type name.
scalar Phi(const scalarFieldListSlice &Yu) const
Return the fuel-oxidant equivalence ratio.
uMulticomponentMixture(const speciesTable &species, const dictionary &)
Construct from the speciesTable and dictionary.
scalar stoicRatio() const
Return the stoichiometric air/fuel ratio.
A class for handling words, derived from string.
Definition: word.H:63
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.