makeReactions.C
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) 2012-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 #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, dictionary); \
50  \
51  makeIRNReactions(Thermo, ArrheniusReactionRate) \
52  makeIRNReactions(Thermo, infiniteReactionRate) \
53  makeIRNReactions(Thermo, LandauTellerReactionRate) \
54  makeIRNReactions(Thermo, thirdBodyArrheniusReactionRate) \
55  \
56  makeIRReactions(Thermo, JanevReactionRate) \
57  makeIRReactions(Thermo, powerSeriesReactionRate) \
58  \
59  makePressureDependentReactions \
60  ( \
61  Thermo, \
62  ArrheniusReactionRate, \
63  LindemannFallOffFunction \
64  ) \
65  \
66  makePressureDependentReactions \
67  ( \
68  Thermo, \
69  ArrheniusReactionRate, \
70  TroeFallOffFunction \
71  ) \
72  \
73  makePressureDependentReactions \
74  ( \
75  Thermo, \
76  ArrheniusReactionRate, \
77  SRIFallOffFunction \
78  )
79 
80 
81 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
82 
83 namespace Foam
84 {
85  // sensible enthalpy based reactions
87  makeReactions(gasHThermoPhysics, gasHReaction)
89  (
90  constIncompressibleGasHThermoPhysics,
92  )
93  makeReactions(incompressibleGasHThermoPhysics, incompressibleGasHReaction)
94  makeReactions(icoPoly8HThermoPhysics, icoPoly8HReaction)
95  makeReactions(constFluidHThermoPhysics, constFluidHReaction)
97  (
98  constAdiabaticFluidHThermoPhysics,
100  )
101  makeReactions(constHThermoPhysics, constHReaction)
102 
103  makeReactions(constGasEThermoPhysics, constGasEReaction)
104  makeReactions(gasEThermoPhysics, gasEReaction)
106  (
107  constIncompressibleGasEThermoPhysics,
109  )
110  makeReactions(incompressibleGasEThermoPhysics, incompressibleGasEReaction)
111  makeReactions(icoPoly8EThermoPhysics, icoPoly8EReaction)
112  makeReactions(constFluidEThermoPhysics, constFluidEReaction)
114  (
115  constAdiabaticFluidEThermoPhysics,
117  )
118  makeReactions(constEThermoPhysics, constEReaction)
119 }
120 
121 // ************************************************************************* //
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:56
#define makeReactions(Thermo, Reaction)
Definition: makeReactions.C:46
Namespace for OpenFOAM.