makeChemistrySolverTypes.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-2016 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 makeChemistrySolverTypes_H
27 #define makeChemistrySolverTypes_H
28 
29 #include "chemistrySolver.H"
30 
31 #include "chemistryModel.H"
32 
33 #include "noChemistrySolver.H"
34 #include "EulerImplicit.H"
35 #include "ode.H"
36 
37 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38 
39 #define makeChemistrySolverType(SS, Comp, Thermo) \
40  \
41  typedef SS<chemistryModel<Comp, Thermo>> SS##Comp##Thermo; \
42  \
43  defineTemplateTypeNameAndDebugWithName \
44  ( \
45  SS##Comp##Thermo, \
46  (#SS"<" + word(Comp::typeName_()) \
47  + "," + Thermo::typeName() + ">").c_str(), \
48  0 \
49  ); \
50  \
51  addToRunTimeSelectionTable \
52  ( \
53  Comp, \
54  SS##Comp##Thermo, \
55  fvMesh \
56  );
57 
58 
59 #define makeChemistrySolverTypes(CompChemModel,Thermo) \
60  \
61  makeChemistrySolverType \
62  ( \
63  noChemistrySolver, \
64  CompChemModel, \
65  Thermo \
66  ); \
67  \
68  makeChemistrySolverType \
69  ( \
70  EulerImplicit, \
71  CompChemModel, \
72  Thermo \
73  ); \
74  \
75  makeChemistrySolverType \
76  ( \
77  ode, \
78  CompChemModel, \
79  Thermo \
80  ); \
81 
82 
83 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
84 
85 #endif
86 
87 // ************************************************************************* //