makeReactionThermo.H
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) 2011-2012 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 
26 #ifndef makeReactionThermo_H
27 #define makeReactionThermo_H
28 
30 #include "SpecieMixture.H"
31 
32 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33 
34 #define makeReactionMixtureThermo(BaseThermo,CThermo,MixtureThermo,Mixture,ThermoPhys) \
35  \
36 typedef MixtureThermo \
37 < \
38  CThermo, \
39  SpecieMixture \
40  < \
41  Mixture \
42  < \
43  ThermoPhys \
44  > \
45  > \
46 > MixtureThermo##Mixture##ThermoPhys; \
47  \
48 defineTemplateTypeNameAndDebugWithName \
49 ( \
50  MixtureThermo##Mixture##ThermoPhys, \
51  (#MixtureThermo"<"#Mixture"<" + ThermoPhys::typeName() + ">>").c_str(), \
52  0 \
53 ); \
54  \
55 addToRunTimeSelectionTable \
56 ( \
57  basicThermo, \
58  MixtureThermo##Mixture##ThermoPhys, \
59  fvMesh \
60 ); \
61  \
62 addToRunTimeSelectionTable \
63 ( \
64  fluidThermo, \
65  MixtureThermo##Mixture##ThermoPhys, \
66  fvMesh \
67 ); \
68  \
69 addToRunTimeSelectionTable \
70 ( \
71  BaseThermo, \
72  MixtureThermo##Mixture##ThermoPhys, \
73  fvMesh \
74 ); \
75  \
76 addToRunTimeSelectionTable \
77 ( \
78  CThermo, \
79  MixtureThermo##Mixture##ThermoPhys, \
80  fvMesh \
81 );
82 
83 
84 #define makeReactionThermo(BaseThermo,CThermo,MixtureThermo,Mixture,Transport,Type,Thermo,EqnOfState,Specie) \
85  \
86 typedef \
87  Transport \
88  < \
89  species::thermo \
90  < \
91  Thermo \
92  < \
93  EqnOfState \
94  < \
95  Specie \
96  > \
97  >, \
98  Type \
99  > \
100  > Transport##Type##Thermo##EqnOfState##Specie; \
101  \
102 makeReactionMixtureThermo \
103 ( \
104  BaseThermo, \
105  CThermo, \
106  MixtureThermo, \
107  Mixture, \
108  Transport##Type##Thermo##EqnOfState##Specie \
109 );
110 
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 #endif
115 
116 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.