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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2017 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
29 
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 
32 #include "thermoPhysicsTypes.H"
33 
34 #include "rhoConst.H"
35 #include "perfectFluid.H"
36 #include "Boussinesq.H"
37 
38 #include "pureMixture.H"
39 #include "multiComponentMixture.H"
40 #include "reactingMixture.H"
41 #include "SpecieMixture.H"
42 
43 #include "rhoThermo.H"
44 #include "rhoReactionThermo.H"
45 #include "heRhoThermo.H"
46 
47 #include "solidThermo.H"
48 #include "heSolidThermo.H"
50 
51 #include "kineticGasEvaporation.H"
52 #include "Lee.H"
53 #include "interfaceHeatResistance.H"
54 
55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 
57 namespace Foam
58 {
59  typedef
60  constTransport
61  <
63  <
64  hConstThermo
65  <
66  rhoConst<specie>
67  >,
68  sensibleEnthalpy
69  >
71 
72 
73  typedef
75  <
77  <
79  <
81  >,
83  >
85 };
86 
87 
88 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
89 
90 namespace Foam
91 {
92  using namespace meltingEvaporationModels;
93 
94  //NOTE: First thermo (from) and second otherThermo (to)
95 
96  // kineticGasEvaporation model definitions
97 
98  // From pure liquid (rhoConst) to a multi-component gas incomp phase
100  (
101  kineticGasEvaporation,
102  heRhoThermo,
103  rhoThermo,
104  pureMixture,
106  heRhoThermo,
107  rhoReactionThermo,
108  multiComponentMixture,
110  );
111 
112  // From pure liquid (BoussinesqFluid) to a multi-component gas incomp
113  // phase
115  (
116  kineticGasEvaporation,
117  heRhoThermo,
118  rhoThermo,
119  pureMixture,
121  heRhoThermo,
122  rhoReactionThermo,
123  multiComponentMixture,
125  );
126 
127 
128  // From pure liquid (rhoConst) to pure gas (incompressible ideal gas)
130  (
131  kineticGasEvaporation,
132  heRhoThermo,
133  rhoThermo,
134  pureMixture,
136  heRhoThermo,
137  rhoThermo,
138  pureMixture,
140  );
141 
142  // From pure liquid (const rho) to pure gas (rhoConst) gas
144  (
145  kineticGasEvaporation,
146  heRhoThermo,
147  rhoThermo,
148  pureMixture,
150  heRhoThermo,
151  rhoThermo,
152  pureMixture,
154  );
155 
156 
157  // From pure liquid (Boussinesq) to pure gas (incompressible ideal gas)
159  (
160  kineticGasEvaporation,
161  heRhoThermo,
162  rhoThermo,
163  pureMixture,
165  heRhoThermo,
166  rhoThermo,
167  pureMixture,
169  );
170 
171  // From pure liquid (Boussinesq) to pure gas (rho const)
173  (
174  kineticGasEvaporation,
175  heRhoThermo,
176  rhoThermo,
177  pureMixture,
179  heRhoThermo,
180  rhoThermo,
181  pureMixture,
183  );
184 
185 
186  // Lee model definitions
187 
188  // From pure phase (rho const) to phase (rho const)
190  (
191  Lee,
192  heRhoThermo,
193  rhoThermo,
194  pureMixture,
196  heRhoThermo,
197  rhoThermo,
198  pureMixture,
200  );
201 
202  // From pure phase (rho const) to phase (Boussinesq)
204  (
205  Lee,
206  heRhoThermo,
207  rhoThermo,
208  pureMixture,
210  heRhoThermo,
211  rhoThermo,
212  pureMixture,
214  );
215 
216 
217  // From pure phase (solidThermo) to phase (Boussinesq)
219  (
220  Lee,
221  heSolidThermo,
222  solidThermo,
223  pureMixture,
225  heRhoThermo,
226  rhoThermo,
227  pureMixture,
229  );
230 
231  // From pure phase (solidThermo) to phase (rho const)
233  (
234  Lee,
235  heSolidThermo,
236  solidThermo,
237  pureMixture,
239  heRhoThermo,
240  rhoThermo,
241  pureMixture,
243  );
244 
245  // From pure phase (all-poly solidThermo) to phase (ico-rho)
247  (
248  Lee,
249  heSolidThermo,
250  solidThermo,
251  pureMixture,
253  heRhoThermo,
254  rhoThermo,
255  pureMixture,
257  );
258 
259  // From pure phase (exp-Transp, hPower solidThermo) to phase (ico-rho)
261  (
262  Lee,
263  heSolidThermo,
264  solidThermo,
265  pureMixture,
267  heRhoThermo,
268  rhoThermo,
269  pureMixture,
271  );
272 
273 
274  // From pure phase (const rho) to multi phase (incomp ideal gas)
276  (
277  Lee,
278  heRhoThermo,
279  rhoThermo,
280  pureMixture,
282  heRhoThermo,
283  rhoReactionThermo,
284  multiComponentMixture,
286  );
287 
288 
289  // From pure phase (Boussinesq) to phase (solidThermo)
291  (
292  Lee,
293  heRhoThermo,
294  rhoThermo,
295  pureMixture,
297  heSolidThermo,
298  solidThermo,
299  pureMixture,
301  );
302 
303  // From pure phase (rho const) to phase (solidThermo)
305  (
306  Lee,
307  heRhoThermo,
308  rhoThermo,
309  pureMixture,
311  heSolidThermo,
312  solidThermo,
313  pureMixture,
315  );
316 
317  //From pure liquid phase (ico-rho) to pure phase (exp-Transp, hPower solidThermo)
319  (
320  Lee,
321  heRhoThermo,
322  rhoThermo,
323  pureMixture,
325  heSolidThermo,
326  solidThermo,
327  pureMixture,
329  );
330 
331 
332 
333  // interfaceHeatResistance model definitions
334 
335  // From pure phase (rho const) to phase (rho const)
337  (
339  heRhoThermo,
340  rhoThermo,
341  pureMixture,
343  heRhoThermo,
344  rhoThermo,
345  pureMixture,
347  );
348 
349  // From pure phase (rho const) to phase (Boussinesq)
351  (
353  heRhoThermo,
354  rhoThermo,
355  pureMixture,
357  heRhoThermo,
358  rhoThermo,
359  pureMixture,
361  );
362 
363 
364  // From pure phase (solidThermo) to phase (Boussinesq)
366  (
368  heSolidThermo,
369  solidThermo,
370  pureMixture,
372  heRhoThermo,
373  rhoThermo,
374  pureMixture,
376  );
377 
378  // From pure phase (solidThermo) to phase (rho const)
380  (
382  heSolidThermo,
383  solidThermo,
384  pureMixture,
386  heRhoThermo,
387  rhoThermo,
388  pureMixture,
390  );
391 
392  // From pure phase (all-poly solidThermo) to phase (ico-rho)
394  (
396  heSolidThermo,
397  solidThermo,
398  pureMixture,
400  heRhoThermo,
401  rhoThermo,
402  pureMixture,
404  );
405 
406  // From pure phase (exp-Transp, hPower solidThermo) to phase (ico-rho)
408  (
410  heSolidThermo,
411  solidThermo,
412  pureMixture,
414  heRhoThermo,
415  rhoThermo,
416  pureMixture,
418  );
419 
420 
421  // From pure phase (const rho) to multi phase (incomp ideal gas)
423  (
425  heRhoThermo,
426  rhoThermo,
427  pureMixture,
429  heRhoThermo,
430  rhoReactionThermo,
431  multiComponentMixture,
433  );
434 
435 
436  // From pure phase (Boussinesq) to phase (solidThermo)
438  (
440  heRhoThermo,
441  rhoThermo,
442  pureMixture,
444  heSolidThermo,
445  solidThermo,
446  pureMixture,
448  );
449 
450  // From pure phase (rho const) to phase (solidThermo)
452  (
454  heRhoThermo,
455  rhoThermo,
456  pureMixture,
458  heSolidThermo,
459  solidThermo,
460  pureMixture,
462  );
463 
464  //From pure liquid phase (ico-rho) to pure phase (exp-Transp, hPower solidThermo)
466  (
468  heRhoThermo,
469  rhoThermo,
470  pureMixture,
472  heSolidThermo,
473  solidThermo,
474  pureMixture,
476  );
477 
478 }
479 
480 
481 // ************************************************************************* //
Foam::hPowerSolidThermoPhysics
exponentialSolidTransport< species::thermo< hPowerThermo< rhoConst< specie > >, sensibleEnthalpy > > hPowerSolidThermoPhysics
Definition: solidThermoPhysicsTypes.H:80
reactingMixture.H
thermo
psiReactionThermo & thermo
Definition: createFields.H:28
rhoConst.H
Foam::makeInterfacePureType
makeInterfacePureType(kineticGasEvaporation, heRhoThermo, rhoThermo, pureMixture, constRhoHThermoPhysics, heRhoThermo, rhoThermo, pureMixture, constIncompressibleGasHThermoPhysics)
perfectFluid.H
Foam::sensibleEnthalpy
Thermodynamics mapping class to expose the sensible enthalpy functions.
Definition: sensibleEnthalpy.H:49
Foam::constIncompressibleGasHThermoPhysics
constTransport< species::thermo< hConstThermo< incompressiblePerfectGas< specie > >, sensibleEnthalpy > > constIncompressibleGasHThermoPhysics
Definition: thermoPhysicsTypes.H:101
solidThermo.H
rhoThermo.H
heRhoThermo.H
rhoReactionThermo.H
interfaceHeatResistance
Interface Heat Resistance type of condensation/saturation model using spread source distribution foll...
Lee.H
Foam::Boussinesq
Incompressible gas equation of state using the Boussinesq approximation for the density as a function...
Definition: Boussinesq.H:57
solidThermoPhysicsTypes.H
Type definitions for solid-thermo-physics models.
Foam::constTransport
Constant properties Transport package. Templated into a given thermodynamics package (needed for ther...
Definition: constTransport.H:53
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::species::thermo
Definition: thermo.H:55
heSolidThermo.H
Foam::makeInterfaceContSpecieMixtureType
makeInterfaceContSpecieMixtureType(kineticGasEvaporation, heRhoThermo, rhoThermo, pureMixture, constRhoHThermoPhysics, heRhoThermo, rhoReactionThermo, multiComponentMixture, constIncompressibleGasHThermoPhysics)
Foam::hPolyTranspPolyIcoSolidThermoPhysics
polynomialSolidTransport< species::thermo< hPolynomialThermo< icoPolynomial< specie, 8 >, 8 >, sensibleEnthalpy >, 8 > hPolyTranspPolyIcoSolidThermoPhysics
Definition: solidThermoPhysicsTypes.H:123
Foam::BoussinesqFluidEThermoPhysics
constTransport< species::thermo< hConstThermo< Boussinesq< specie > >, sensibleEnthalpy > > BoussinesqFluidEThermoPhysics
Definition: InterfaceCompositionModels.C:84
Foam::hConstSolidThermoPhysics
constIsoSolidTransport< species::thermo< hConstThermo< rhoConst< specie > >, sensibleEnthalpy > > hConstSolidThermoPhysics
Definition: solidThermoPhysicsTypes.H:67
kineticGasEvaporation.H
thermoPhysicsTypes.H
Type definitions for thermo-physics models.
SpecieMixture.H
Boussinesq.H
multiComponentMixture.H
Foam::constRhoHThermoPhysics
constTransport< species::thermo< hConstThermo< rhoConst< specie > >, sensibleEnthalpy > > constRhoHThermoPhysics
Definition: InterfaceCompositionModels.C:70
Foam::hConstThermo
Constant properties thermodynamics package templated into the EquationOfState.
Definition: hConstThermo.H:52
pureMixture.H
Foam::icoPoly8HThermoPhysics
polynomialTransport< species::thermo< hPolynomialThermo< icoPolynomial< specie, 8 >, 8 >, sensibleEnthalpy >, 8 > icoPoly8HThermoPhysics
Definition: thermoPhysicsTypes.H:129