makeReactions.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) 2012-2013 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 #include "reactionTypes.H"
27 #include "makeReaction.H"
28 
29 #include "ArrheniusReactionRate.H"
30 #include "infiniteReactionRate.H"
33 
35 #include "JanevReactionRate.H"
37 
38 #include "FallOffReactionRate.H"
40 #include "SRIFallOffFunction.H"
41 #include "TroeFallOffFunction.H"
42 
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 #define makeReactions(Thermo, Reaction) \
47  \
48  defineTemplateTypeNameAndDebug(Reaction, 0); \
49  defineTemplateRunTimeSelectionTable(Reaction, Istream); \
50  defineTemplateRunTimeSelectionTable(Reaction, dictionary); \
51  \
52  makeIRNReactions(Thermo, ArrheniusReactionRate) \
53  makeIRNReactions(Thermo, infiniteReactionRate) \
54  makeIRNReactions(Thermo, LandauTellerReactionRate) \
55  makeIRNReactions(Thermo, thirdBodyArrheniusReactionRate) \
56  \
57  makeIRReactions(Thermo, JanevReactionRate) \
58  makeIRReactions(Thermo, powerSeriesReactionRate) \
59  \
60  makePressureDependentReactions \
61  ( \
62  Thermo, \
63  ArrheniusReactionRate, \
64  LindemannFallOffFunction \
65  ) \
66  \
67  makePressureDependentReactions \
68  ( \
69  Thermo, \
70  ArrheniusReactionRate, \
71  TroeFallOffFunction \
72  ) \
73  \
74  makePressureDependentReactions \
75  ( \
76  Thermo, \
77  ArrheniusReactionRate, \
78  SRIFallOffFunction \
79  )
80 
81 
82 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
83 
84 namespace Foam
85 {
86  // sensible enthalpy based reactions
88  makeReactions(gasHThermoPhysics, gasHReaction)
90  (
91  constIncompressibleGasHThermoPhysics,
93  )
94  makeReactions(incompressibleGasHThermoPhysics, incompressibleGasHReaction)
95  makeReactions(icoPoly8HThermoPhysics, icoPoly8HReaction)
96 
97  makeReactions(constGasEThermoPhysics, constGasEReaction)
98  makeReactions(gasEThermoPhysics, gasEReaction)
100  (
101  constIncompressibleGasEThermoPhysics,
103  )
104  makeReactions(incompressibleGasEThermoPhysics, incompressibleGasEReaction)
105  makeReactions(icoPoly8EThermoPhysics, icoPoly8EReaction)
106 }
107 
108 // ************************************************************************* //
Macros for instantiating reactions on given thermo packages.
Constant properties Transport package. Templated into a given thermodynamics package (needed for ther...
Type definitions for reactions.
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
Definition: Reaction.H:53
#define makeReactions(Thermo, Reaction)
Definition: makeReactions.C:46
Namespace for OpenFOAM.