coefficientMulticomponentMixture.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) 2020-2023 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::coefficientMulticomponentMixture
26 
27 Description
28  Thermophysical properties mixing class which applies mass-fraction weighted
29  mixing to the thermodynamic and transport coefficients.
30 
31 SourceFiles
32  coefficientMulticomponentMixture.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef coefficientMulticomponentMixture_H
37 #define coefficientMulticomponentMixture_H
38 
39 #include "multicomponentMixture.H"
40 #include "FieldListSlice.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class coefficientMulticomponentMixture Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 template<class ThermoType>
53 :
54  public multicomponentMixture<ThermoType>
55 {
56 public:
57 
58  // Public Typedefs
59 
60  //- Mixing type for thermodynamic properties
61  typedef ThermoType thermoMixtureType;
62 
63  //- Mixing type for transport properties
64  typedef ThermoType transportMixtureType;
65 
66 
67 private:
68 
69  // Private Data
70 
71  //- Temporary storage for the cell/face mixture thermo data
72  mutable thermoMixtureType mixture_;
73 
74 
75 public:
76 
77  // Constructors
78 
79  //- Construct from a dictionary
81 
82  //- Disallow default bitwise copy construction
84  (
86  ) = delete;
87 
88 
89  //- Destructor
91  {}
92 
93 
94  // Member Functions
95 
96  //- Return the instantiated type name
97  static word typeName()
98  {
99  return "multicomponentMixture<" + ThermoType::typeName() + '>';
100  }
101 
102  //- Return the mixture for thermodynamic properties
104  (
105  const scalarFieldListSlice&
106  ) const;
107 
108  //- Return the mixture for transport properties
110  (
111  const scalarFieldListSlice&
112  ) const;
113 
114  //- Return the mixture for transport properties
116  (
117  const scalarFieldListSlice&,
118  const thermoMixtureType&
119  ) const;
120 };
121 
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 } // End namespace Foam
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #ifdef NoRepository
131 #endif
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 #endif
136 
137 // ************************************************************************* //
Thermophysical properties mixing class which applies mass-fraction weighted mixing to the thermodynam...
const transportMixtureType & transportMixture(const scalarFieldListSlice &) const
Return the mixture for transport properties.
coefficientMulticomponentMixture(const dictionary &)
Construct from a dictionary.
static word typeName()
Return the instantiated type name.
ThermoType transportMixtureType
Mixing type for transport properties.
ThermoType thermoMixtureType
Mixing type for thermodynamic properties.
const thermoMixtureType & thermoMixture(const scalarFieldListSlice &) const
Return the mixture for thermodynamic properties.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Foam::multicomponentMixture.
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.