InterfaceCompositionModels.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2015 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 \*---------------------------------------------------------------------------*/
25 
27 
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
29 
32 #include "Henry.H"
33 #include "NonRandomTwoLiquid.H"
34 #include "Raoult.H"
35 #include "Saturated.H"
36 
37 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38 
39 #include "makeReactionThermo.H"
40 
41 #include "thermoPhysicsTypes.H"
42 
43 #include "rhoConst.H"
44 #include "perfectFluid.H"
45 
46 #include "pureMixture.H"
47 #include "multiComponentMixture.H"
48 #include "reactingMixture.H"
49 #include "SpecieMixture.H"
50 
51 #include "rhoThermo.H"
52 #include "rhoReactionThermo.H"
53 #include "heRhoThermo.H"
54 
55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 
57 namespace Foam
58 {
59  typedef
60  constTransport
61  <
63  <
64  hConstThermo
65  <
66  perfectFluid<specie>
67  >,
68  sensibleInternalEnergy
69  >
70  > constFluidEThermoPhysics;
71 };
72 
73 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74 
75 namespace Foam
76 {
77  // multi-component liquid
79  (
80  rhoThermo,
81  rhoReactionThermo,
82  heRhoThermo,
83  multiComponentMixture,
84  constTransport,
85  sensibleInternalEnergy,
86  hConstThermo,
87  perfectFluid,
88  specie
89  );
90 }
91 
92 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
93 
94 namespace Foam
95 {
96  using namespace interfaceCompositionModels;
97 
98  // multi-component gas in the presence of a pure liquid
100  (
101  Saturated,
102  heRhoThermo,
103  rhoReactionThermo,
104  multiComponentMixture,
106  heRhoThermo,
107  rhoThermo,
108  pureMixture,
109  constFluidEThermoPhysics
110  );
111 
112  // reacting gas in the presence of a pure liquid
114  (
115  Saturated,
116  heRhoThermo,
117  rhoReactionThermo,
118  reactingMixture,
120  heRhoThermo,
121  rhoThermo,
122  pureMixture,
123  constFluidEThermoPhysics
124  );
125 
126  // multi-component gas in the presence of a multi-component liquid
128  (
129  Saturated,
130  heRhoThermo,
131  rhoReactionThermo,
132  multiComponentMixture,
134  heRhoThermo,
135  rhoReactionThermo,
136  multiComponentMixture,
137  constFluidEThermoPhysics
138  );
139 
140  // multi-component liquid in the presence of a multi-component gas
142  (
143  Henry,
144  heRhoThermo,
145  rhoReactionThermo,
146  multiComponentMixture,
147  constFluidEThermoPhysics,
148  heRhoThermo,
149  rhoReactionThermo,
150  multiComponentMixture,
152  );
153 }
154 
155 // ************************************************************************* //
#define makeInterfaceCompositionType(Type, Thermo, Comp, Mix, Phys, OtherThermo, OtherComp, OtherMix, OtherPhys)
sutherlandTransport< species::thermo< janafThermo< perfectGas< specie > >, sensibleInternalEnergy > > gasEThermoPhysics
Type definitions for thermo-physics models.
Namespace for OpenFOAM.
makeReactionThermo(psiThermo, psiReactionThermo, hePsiThermo, homogeneousMixture, constTransport, sensibleEnthalpy, hConstThermo, perfectGas, specie)
constTransport< species::thermo< hConstThermo< perfectGas< specie > >, sensibleInternalEnergy > > constGasEThermoPhysics
#define makeSpecieInterfaceCompositionType(Type, Thermo, Comp, Mix, Phys, OtherThermo, OtherComp, OtherMix, OtherPhys)
Macros for easy insertion into run-time selection tables.
psiReactionThermo & thermo
Definition: createFields.H:32