makeChemistryTabulationMethods.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) 2016-2018 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 makeChemistryTabulationMethods_H
27 #define makeChemistryTabulationMethods_H
28 
30 #include "noChemistryTabulation.H"
31 #include "ISAT.H"
32 
33 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 
35 #define makeChemistryTabulationMethod(SS, Comp, Thermo) \
36  \
37  typedef chemistryTabulationMethods::SS<Comp, Thermo> \
38  chemistryTabulationMethod##SS##Comp##Thermo; \
39  \
40  defineTemplateTypeNameAndDebugWithName \
41  ( \
42  chemistryTabulationMethod##SS##Comp##Thermo, \
43  (#SS"<" + word(Comp::typeName_()) \
44  + "," + Thermo::typeName() + ">").c_str(), \
45  0 \
46  ); \
47  \
48  chemistryTabulationMethod<Comp, Thermo>:: \
49  adddictionaryConstructorToTable \
50  <chemistryTabulationMethod##SS##Comp##Thermo> \
51  add##chemistryTabulationMethods##SS##Comp##Thermo##ConstructorToTable_;
52 
53 
54 #define makeChemistryTabulationMethods(CompChemModel, Thermo) \
55  \
56  typedef chemistryTabulationMethod<CompChemModel, Thermo> \
57  chemistryTabulationMethod##CompChemModel##Thermo; \
58  \
59  defineTemplateTypeNameAndDebugWithName \
60  ( \
61  chemistryTabulationMethod##CompChemModel##Thermo, \
62  (word(chemistryTabulationMethod##CompChemModel##Thermo::typeName_()) + \
63  '<' + word(CompChemModel::typeName_()) + "," + Thermo::typeName() + '>'\
64  ).c_str(), \
65  0 \
66  ); \
67  \
68  defineTemplateRunTimeSelectionTable \
69  ( \
70  chemistryTabulationMethod##CompChemModel##Thermo, \
71  dictionary \
72  ); \
73  \
74  makeChemistryTabulationMethod \
75  ( \
76  none, \
77  CompChemModel, \
78  Thermo \
79  ); \
80  \
81  makeChemistryTabulationMethod \
82  ( \
83  ISAT, \
84  CompChemModel, \
85  Thermo \
86  );
87 
88 
89 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
90 
91 #endif
92 
93 // ************************************************************************* //