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-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 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  //- Pre-evaluation hook
131  inline void preEvaluate() const;
132 
133  //- Post-evaluation hook
134  inline void postEvaluate() const;
135 
136  inline scalar operator()
137  (
138  const scalar p,
139  const scalar T,
140  const scalarField& c,
141  const label li
142  ) const;
143 
144  inline scalar ddT
145  (
146  const scalar p,
147  const scalar T,
148  const scalarField& c,
149  const label li
150  ) const;
151 
152  inline bool hasDdc() const;
153 
154  inline void ddc
155  (
156  const scalar p,
157  const scalar T,
158  const scalarField& c,
159  const label li,
161  ) const;
162 
163  //- Write to stream
164  inline void write(Ostream& os) const;
165 
166 
167  // Ostream Operator
168 
169  inline friend Ostream& operator<<
170  (
171  Ostream&,
173  );
174 };
175 
176 
177 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178 
179 } // End namespace Foam
180 
181 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
182 
184 
185 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
186 
187 #endif
188 
189 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
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
Langmuir-Hinshelwood reaction rate for gaseous reactions on surfaces including the optional flux limi...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A wordList with hashed indices for faster lookup by name.
void ddc(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &ddc) const
volScalarField & p
Registry of regIOobjects.
Namespace for OpenFOAM.