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-2021 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 "makeReaction.H"
27 
28 #include "ArrheniusReactionRate.H"
31 
32 #include "JanevReactionRate.H"
34 
36 #include "FallOffReactionRate.H"
37 
39 #include "SRIFallOffFunction.H"
40 #include "TroeFallOffFunction.H"
41 
43 
45 
46 #include "forGases.H"
47 #include "forLiquids.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 template<>
53 (
54  "Tuple2<word,scalar>"
55 );
56 
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 
59 namespace Foam
60 {
61  forCoeffGases(defineReaction, nullArg);
63 
64 
65  // Irreversible/reversible/non-equilibrium-reversible reactions
66 
67  forCoeffGases(makeIRNReactions, ArrheniusReactionRate);
68  forCoeffLiquids(makeIRNReactions, ArrheniusReactionRate);
69 
70  forCoeffGases(makeIRNReactions, LandauTellerReactionRate);
71  forCoeffLiquids(makeIRNReactions, LandauTellerReactionRate);
72 
73  forCoeffGases(makeIRNReactions, thirdBodyArrheniusReactionRate);
74  forCoeffLiquids(makeIRNReactions, thirdBodyArrheniusReactionRate);
75 
76 
77  // Irreversible/reversible reactions
78 
79  forCoeffGases(makeIRReactions, JanevReactionRate);
80  forCoeffLiquids(makeIRReactions, JanevReactionRate);
81 
82  forCoeffGases(makeIRReactions, powerSeriesReactionRate);
83  forCoeffLiquids(makeIRReactions, powerSeriesReactionRate);
84 
85 
86  // Pressure dependent reactions
87 
89  (
91  FallOffReactionRate,
92  ArrheniusReactionRate,
93  LindemannFallOffFunction
94  );
96  (
98  FallOffReactionRate,
99  ArrheniusReactionRate,
100  LindemannFallOffFunction
101  );
102 
104  (
106  FallOffReactionRate,
107  ArrheniusReactionRate,
108  TroeFallOffFunction
109  );
111  (
113  FallOffReactionRate,
114  ArrheniusReactionRate,
115  TroeFallOffFunction
116  );
117 
119  (
121  FallOffReactionRate,
122  ArrheniusReactionRate,
123  SRIFallOffFunction
124  );
126  (
128  FallOffReactionRate,
129  ArrheniusReactionRate,
130  SRIFallOffFunction
131  );
132 
134  (
136  ChemicallyActivatedReactionRate,
137  ArrheniusReactionRate,
138  LindemannFallOffFunction
139  );
141  (
143  ChemicallyActivatedReactionRate,
144  ArrheniusReactionRate,
145  LindemannFallOffFunction
146  );
147 
149  (
151  ChemicallyActivatedReactionRate,
152  ArrheniusReactionRate,
153  TroeFallOffFunction
154  );
156  (
158  ChemicallyActivatedReactionRate,
159  ArrheniusReactionRate,
160  TroeFallOffFunction
161  );
162 
164  (
166  ChemicallyActivatedReactionRate,
167  ArrheniusReactionRate,
168  SRIFallOffFunction
169  );
171  (
173  ChemicallyActivatedReactionRate,
174  ArrheniusReactionRate,
175  SRIFallOffFunction
176  );
177 }
178 
179 // ************************************************************************* //
forCoeffGases(defineChemistryReductionMethod, nullArg)
Macros for instantiating reactions on given thermo packages.
#define makeIRNReactions(ReactionRate, ThermoPhysics)
Definition: makeReaction.H:134
forCoeffLiquids(defineChemistryReductionMethod, nullArg)
#define defineReaction(nullArg, ThermoPhysics)
Definition: makeReaction.H:45
#define makeIRRPressureDependentReactions( PressureDependentReactionRate, ReactionRate, FallOffFunction, ThermoPhysics)
Definition: makeReaction.H:140
static const char *const typeName
Definition: Tuple2.H:90
Namespace for OpenFOAM.
#define makeIRReactions(ReactionRate, ThermoPhysics)
Definition: makeReaction.H:128