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  Templated Unburnt gas combustion mixture for inhomogeneous lean,
29  stoichiometric 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 See also
35  Foam::uInhomogeneousEGRMixture
36 
37 SourceFiles
38  UInhomogeneousEGRMixture.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef UInhomogeneousEGRMixture_H
43 #define UInhomogeneousEGRMixture_H
44 
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class UInhomogeneousEGRMixture Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 template<class ThermoType>
58 :
60 {
61 public:
62 
63  // Public Typedefs
64 
65  //- The type of thermodynamics this mixture is instantiated for
66  typedef ThermoType thermoType;
67 
68  //- Mixing type for thermodynamic properties
69  typedef ThermoType thermoMixtureType;
70 
71  //- Mixing type for transport properties
72  typedef ThermoType transportMixtureType;
73 
74 
75 protected:
76 
77  // Protected Data
78 
79  //- Fuel thermodynamic model
81 
82  //- Oxidant thermodynamic model
84 
85  //- Product thermodynamic model
87 
88  //- Mutable storage for the mixed thermodynamic model
89  mutable thermoType mixture_;
90 
91 
92  // Protected Member Functions
93 
94  //- Return the mixture for the given composition
95  const thermoType& mixture
96  (
97  const scalar fu,
98  const scalar egr
99  ) const;
100 
101 
102 public:
103 
104  // Constructors
105 
106  //- Construct from a dictionary
108 
109  //- Disallow default bitwise copy construction
111  (
113  ) = delete;
114 
115 
116  // Member Functions
117 
118  //- Return the instantiated type name
119  static word typeName()
120  {
121  return
123  + '<' + ThermoType::typeName() + '>';
124  }
125 
126  const ThermoType& specieThermo(const label speciei) const;
127 
128  //- Return the mixture for thermodynamic properties
130  (
131  const scalarFieldListSlice&
132  ) const;
133 
134  //- Return the mixture for transport properties
136  (
137  const scalarFieldListSlice&
138  ) const;
139 
140  //- Return the mixture for transport properties
142  (
143  const scalarFieldListSlice&,
144  const thermoMixtureType&
145  ) const;
146 
147  //- Read dictionary
148  void read(const dictionary&);
149 
150 
151  // Member Operators
152 
153  //- Disallow default bitwise assignment
154  void operator=(const UInhomogeneousEGRMixture<ThermoType>&) = delete;
155 };
156 
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 } // End namespace Foam
161 
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 
164 #ifdef NoRepository
165  #include "UInhomogeneousEGRMixture.C"
166 #endif
167 
168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 
170 #endif
171 
172 // ************************************************************************* //
Templated Unburnt gas combustion mixture for inhomogeneous lean, stoichiometric or rich conditions wi...
thermoType products_
Product thermodynamic model.
const ThermoType & specieThermo(const label speciei) const
thermoType mixture_
Mutable storage for the mixed thermodynamic model.
ThermoType thermoType
The type of thermodynamics this mixture is instantiated for.
thermoType fuel_
Fuel thermodynamic model.
static word typeName()
Return the instantiated type name.
ThermoType transportMixtureType
Mixing type for transport properties.
ThermoType thermoMixtureType
Mixing type for thermodynamic properties.
void operator=(const UInhomogeneousEGRMixture< ThermoType > &)=delete
Disallow default bitwise assignment.
const transportMixtureType & transportMixture(const scalarFieldListSlice &) const
Return the mixture for transport properties.
const thermoMixtureType & thermoMixture(const scalarFieldListSlice &) const
Return the mixture for thermodynamic properties.
const thermoType & mixture(const scalar fu, const scalar egr) const
Return the mixture for the given composition.
void read(const dictionary &)
Read dictionary.
UInhomogeneousEGRMixture(const dictionary &)
Construct from a dictionary.
thermoType oxidant_
Oxidant thermodynamic model.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Unburnt gas combustion mixture for inhomogeneous lean, stoichiometric or rich conditions with exhaust...
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.