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 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<typename Reaction<ReactionThermo>::specieCoeffs>& lhs,
35  const List<typename Reaction<ReactionThermo>::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
111 {
113  return 0;
114 }
115 
116 
117 template<class ReactionThermo>
119 (
120  const scalar kfwd,
121  const scalar p,
122  const scalar T,
123  const scalarField& c
124 ) const
125 {
127  return 0;
128 }
129 
130 
131 template<class ReactionThermo>
133 (
134  const scalar p,
135  const scalar T,
136  const scalarField& c
137 ) const
138 {
140  return 0;
141 }
142 
143 
144 template<class ReactionThermo>
146 (
147  const scalar p,
148  const scalar T,
149  const scalarField& c
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 scalar dkfdT,
164  const scalar kr
165 ) const
166 {
168  return 0;
169 }
170 
171 
172 template<class ReactionThermo>
175 {
177  return NullObjectRef<List<Tuple2<label, scalar>>>();
178 }
179 
180 
181 template<class ReactionThermo>
183 (
184  const scalar p,
185  const scalar T,
186  const scalarField& c,
187  scalarField& dcidc
188 ) const
189 {
191 }
192 
193 
194 template<class ReactionThermo>
196 (
197  const scalar p,
198  const scalar T,
199  const scalarField& c
200 ) const
201 {
203  return 0;
204 }
205 
206 
207 // ************************************************************************* //
virtual scalar dkrdT(const scalar p, const scalar T, const scalarField &c, const scalar dkfdT, const scalar kr) const
Temperature derivative of reverse rate.
dictionary dict
virtual scalar dcidT(const scalar p, const scalar T, const scalarField &c) const
Temperature derivative of the pressure dependent term.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:60
virtual scalar kf(const scalar p, const scalar T, const scalarField &c) const
Forward rate constant.
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:55
Class to hold the specie index and its coefficients in the.
Definition: Reaction.H:95
virtual autoPtr< Reaction< ReactionThermo > > clone() const
Construct and return a clone.
Definition: ReactionProxy.C:83
ReactionProxy(const speciesTable &species, const List< typename Reaction< ReactionThermo >::specieCoeffs > &lhs, const List< typename Reaction< ReactionThermo >::specieCoeffs > &rhs, const HashPtrTable< ReactionThermo > &thermoDatabase)
Construct from components.
Definition: ReactionProxy.C:32
virtual scalar dkfdT(const scalar p, const scalar T, const scalarField &c) const
Temperature derivative of forward rate.
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, scalarField &dcidc) const
Species concentration derivative of the pressure dependent term.
A wordList with hashed indices for faster lookup by name.
virtual scalar kr(const scalar kfwd, const scalar p, const scalar T, const scalarField &c) const
Reverse rate constant from the given 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