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-2019 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  const scalar p,
108  const scalar T,
109  const scalarField& c,
110  const label li
111 ) const
112 {
114  return 0;
115 }
116 
117 
118 template<class ReactionThermo>
120 (
121  const scalar kfwd,
122  const scalar p,
123  const scalar T,
124  const scalarField& c,
125  const label li
126 ) const
127 {
129  return 0;
130 }
131 
132 
133 template<class ReactionThermo>
135 (
136  const scalar p,
137  const scalar T,
138  const scalarField& c,
139  const label li
140 ) const
141 {
143  return 0;
144 }
145 
146 
147 template<class ReactionThermo>
149 (
150  const scalar p,
151  const scalar T,
152  const scalarField& c,
153  const label li
154 ) const
155 {
157  return 0;
158 }
159 
160 
161 template<class ReactionThermo>
163 (
164  const scalar p,
165  const scalar T,
166  const scalarField& c,
167  const label li,
168  const scalar dkfdT,
169  const scalar kr
170 ) const
171 {
173  return 0;
174 }
175 
176 
177 template<class ReactionThermo>
180 {
182  return NullObjectRef<List<Tuple2<label, scalar>>>();
183 }
184 
185 
186 template<class ReactionThermo>
188 (
189  const scalar p,
190  const scalar T,
191  const scalarField& c,
192  const label li,
193  scalarField& dcidc
194 ) const
195 {
197 }
198 
199 
200 template<class ReactionThermo>
202 (
203  const scalar p,
204  const scalar T,
205  const scalarField& c,
206  const label li
207 ) const
208 {
210  return 0;
211 }
212 
213 
214 // ************************************************************************* //
dictionary dict
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
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 specialization for hashing pointers.
Definition: HashPtrTable.H:50
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
Definition: Reaction.H:56
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 const List< Tuple2< label, scalar > > & beta() const
Third-body efficiencies (beta = 1-alpha)
virtual void dcidc(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &dcidc) const
Species concentration derivative of the pressure dependent term.
virtual scalar dcidT(const scalar p, const scalar T, const scalarField &c, const label li) const
Temperature derivative of the pressure dependent term.
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
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:366