fluxLimitedLangmuirHinshelwoodReactionRate.H
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) 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 Class
25  Foam::fluxLimitedLangmuirHinshelwoodReactionRate
26 
27 Description
28  Langmuir-Hinshelwood reaction rate for gaseous reactions on surfaces
29  including the optional flux limiter of Waletzko and Schmidt.
30 
31  References:
32  \verbatim
33  Hinshelwood, C.N. (1940).
34  The Kinetics of Chemical Change.
35  Oxford Clarendon Press
36 
37  Waletzko, N., & Schmidt, L. D. (1988).
38  Modeling catalytic gauze reactors: HCN synthesis.
39  AIChE journal, 34(7), 1146-1156.
40  \endverbatim
41 
42 SourceFiles
43  fluxLimitedLangmuirHinshelwoodReactionRateI.H
44 
45 \*---------------------------------------------------------------------------*/
46 
47 #ifndef fluxLimitedLangmuirHinshelwoodReactionRate_H
48 #define fluxLimitedLangmuirHinshelwoodReactionRate_H
49 
50 #include "scalarField.H"
51 #include "typeInfo.H"
52 
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 
55 namespace Foam
56 {
57 
58 // Forward declaration of friend functions and operators
59 
60 class fluxLimitedLangmuirHinshelwoodReactionRate;
61 
62 Ostream& operator<<
63 (
64  Ostream&,
65  const fluxLimitedLangmuirHinshelwoodReactionRate&
66 );
67 
68 
69 /*---------------------------------------------------------------------------*\
70  Class fluxLimitedLangmuirHinshelwoodReactionRate Declaration
71 \*---------------------------------------------------------------------------*/
72 
74 {
75  // Private data
76 
77  //- Number reactants (1 or 2)
78  label nReactants_;
79 
80  //- Additional adsorbable specie names
81  wordList additionalAdsorbableSpecieNames_;
82 
83  //- Reactant and additional adsorbable specie indices
84  labelList ra_;
85 
86  scalar a_;
87  scalarList A_;
88  scalarList Ta_;
89  scalarList beta_;
90  scalarList m_;
91 
92  bool limited_;
93  bool AvUniform_;
94  scalar Av_;
95  const word AvName_;
96  const scalarField& AvField_;
97  scalarList nu_;
98  scalarList exp_;
99  scalarList s_;
100  scalarList W_;
101 
102 
103  // Private Member Functions
104 
105  //- Return either the uniform Av value or the field element
106  inline scalar Av(const label li) const;
107 
108 
109 public:
110 
111  // Constructors
112 
113  //- Construct from dictionary
115  (
116  const speciesTable& species,
117  const objectRegistry& ob,
118  const dictionary& dict
119  );
120 
121 
122  // Member Functions
123 
124  //- Return the type name
125  static word type()
126  {
127  return "fluxLimitedLangmuirHinshelwood";
128  }
129 
130  inline scalar operator()
131  (
132  const scalar p,
133  const scalar T,
134  const scalarField& c,
135  const label li
136  ) const;
137 
138  inline scalar ddT
139  (
140  const scalar p,
141  const scalar T,
142  const scalarField& c,
143  const label li
144  ) const;
145 
146  //- Third-body efficiencies (beta = 1-alpha)
147  // non-empty only for third-body reactions
148  // with enhanced molecularity (alpha != 1)
149  inline const List<Tuple2<label, scalar>>& beta() const;
150 
151  //- Species concentration derivative of the pressure dependent term
152  inline void dcidc
153  (
154  const scalar p,
155  const scalar T,
156  const scalarField& c,
157  const label li,
159  ) const;
160 
161  //- Temperature derivative of the pressure dependent term
162  inline scalar dcidT
163  (
164  const scalar p,
165  const scalar T,
166  const scalarField& c,
167  const label li
168  ) const;
169 
170  //- Write to stream
171  inline void write(Ostream& os) const;
172 
173 
174  // Ostream Operator
175 
176  inline friend Ostream& operator<<
177  (
178  Ostream&,
180  );
181 };
182 
183 
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185 
186 } // End namespace Foam
187 
188 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 
191 
192 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
193 
194 #endif
195 
196 // ************************************************************************* //
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
scalar ddT(const scalar p, const scalar T, const scalarField &c, const label li) const
const dimensionedScalar & c
Speed of light in a vacuum.
fluxLimitedLangmuirHinshelwoodReactionRate(const speciesTable &species, const objectRegistry &ob, const dictionary &dict)
Construct from dictionary.
A class for handling words, derived from string.
Definition: word.H:59
const List< Tuple2< label, scalar > > & beta() const
Third-body efficiencies (beta = 1-alpha)
Langmuir-Hinshelwood reaction rate for gaseous reactions on surfaces including the optional flux limi...
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.
scalar dcidT(const scalar p, const scalar T, const scalarField &c, const label li) const
Temperature derivative of the pressure dependent term.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A wordList with hashed indices for faster lookup by name.
volScalarField & p
Registry of regIOobjects.
Namespace for OpenFOAM.