ReactionProxy.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) 2018-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 "ReactionProxy.H"
27 
28 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
29 
30 template<class ReactionThermo>
32 (
33  const speciesTable& species,
34  const List<specieCoeffs>& lhs,
35  const List<specieCoeffs>& rhs,
36  const HashPtrTable<ReactionThermo>& thermoDatabase
37 )
38 :
40  (
41  species,
42  lhs,
43  rhs,
44  thermoDatabase
45  )
46 {}
47 
48 
49 template<class ReactionThermo>
51 (
52  const Reaction<ReactionThermo>& r,
53  const speciesTable& species
54 )
55 :
57  (
58  r,
59  species
60  )
61 {}
62 
63 
64 template<class ReactionThermo>
66 (
67  const speciesTable& species,
68  const HashPtrTable<ReactionThermo>& thermoDatabase,
69  const dictionary& dict
70 )
71 :
73  (
74  species,
75  thermoDatabase,
76  dict
77  )
78 {}
79 
80 
81 template<class ReactionThermo>
84 {
87 }
88 
89 
90 template<class ReactionThermo>
93 (
94  const speciesTable& species
95 ) const
96 {
99 }
100 
101 
102 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
103 
104 template<class ReactionThermo>
106 {}
107 
108 
109 template<class ReactionThermo>
111 {}
112 
113 
114 template<class ReactionThermo>
116 (
117  const scalar p,
118  const scalar T,
119  const scalarField& c,
120  const label li
121 ) const
122 {
124  return 0;
125 }
126 
127 
128 template<class ReactionThermo>
130 (
131  const scalar kfwd,
132  const scalar p,
133  const scalar T,
134  const scalarField& c,
135  const label li
136 ) const
137 {
139  return 0;
140 }
141 
142 
143 template<class ReactionThermo>
145 (
146  const scalar p,
147  const scalar T,
148  const scalarField& c,
149  const label li
150 ) const
151 {
153  return 0;
154 }
155 
156 
157 template<class ReactionThermo>
159 (
160  const scalar p,
161  const scalar T,
162  const scalarField& c,
163  const label li
164 ) const
165 {
167  return 0;
168 }
169 
170 
171 template<class ReactionThermo>
173 (
174  const scalar p,
175  const scalar T,
176  const scalarField& c,
177  const label li,
178  const scalar dkfdT,
179  const scalar kr
180 ) const
181 {
183  return 0;
184 }
185 
186 
187 template<class ReactionThermo>
189 {
191  return false;
192 }
193 
194 
195 template<class ReactionThermo>
197 (
198  const scalar p,
199  const scalar T,
200  const scalarField& c,
201  const label li,
202  scalarField& dkfdc
203 ) const
204 {
206 }
207 
208 
209 template<class ReactionThermo>
211 (
212  const scalar p,
213  const scalar T,
214  const scalarField& c,
215  const label li,
216  const scalarField& dkfdc,
217  const scalar kr,
218  scalarField& dkrdc
219 ) const
220 {
222 }
223 
224 
225 // ************************************************************************* //
dictionary dict
void dkfdc(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &dkfdc) const
Concentration derivative of forward rate.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
virtual scalar dkfdT(const scalar p, const scalar T, const scalarField &c, const label li) const
Temperature derivative of forward rate.
A HashTable specialisation for hashing pointers.
Definition: HashPtrTable.H:50
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
Definition: Reaction.H:55
virtual autoPtr< Reaction< ReactionThermo > > clone() const
Construct and return a clone.
Definition: ReactionProxy.C:83
ReactionProxy(const speciesTable &species, const List< specieCoeffs > &lhs, const List< specieCoeffs > &rhs, const HashPtrTable< ReactionThermo > &thermoDatabase)
Construct from components.
Definition: ReactionProxy.C:32
virtual scalar dkrdT(const scalar p, const scalar T, const scalarField &c, const label li, const scalar dkfdT, const scalar kr) const
Temperature derivative of reverse rate.
virtual scalar kr(const scalar kfwd, const scalar p, const scalar T, const scalarField &c, const label li) const
Reverse rate constant from the given forward rate constant.
virtual bool hasDkdc() const
Does this reaction have concentration-dependent rate constants?
void dkrdc(const scalar p, const scalar T, const scalarField &c, const label li, const scalarField &dkfdc, const scalar kr, scalarField &dkrdc) const
Concentration derivative of reverse rate.
A wordList with hashed indices for faster lookup by name.
virtual scalar kf(const scalar p, const scalar T, const scalarField &c, const label li) const
Forward rate constant.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
virtual void preEvaluate() const
Pre-evaluation hook.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:353
virtual void postEvaluate() const
Post-evaluation hook.