infiniteReactionRate.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) 2011-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::infiniteReactionRate
26 
27 Description
28  infinite reaction rate.
29 
30 SourceFiles
31  infiniteReactionRateI.H
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef infiniteReactionRate_H
36 #define infiniteReactionRate_H
37 
38 #include "scalarField.H"
39 #include "typeInfo.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 // Forward declaration of friend functions and operators
47 
48 class infiniteReactionRate;
49 
50 Ostream& operator<<(Ostream&, const infiniteReactionRate&);
51 
52 
53 /*---------------------------------------------------------------------------*\
54  Class infiniteReactionRate Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 {
59 public:
60 
61  // Constructors
62 
63  //- Null constructor
65  ();
66 
67  //- Construct from dictionary
69  (
70  const speciesTable& species,
71  const dictionary& dict
72  );
73 
74 
75  // Member Functions
76 
77  //- Return the type name
78  static word type()
79  {
80  return "infinite";
81  }
82 
83  inline scalar operator()
84  (
85  const scalar p,
86  const scalar T,
87  const scalarField& c,
88  const label li
89  ) const;
90 
91  inline scalar ddT
92  (
93  const scalar p,
94  const scalar T,
95  const scalarField& c,
96  const label li
97  ) const;
98 
99  //- Third-body efficiencies (beta = 1-alpha)
100  // non-empty only for third-body reactions
101  // with enhanced molecularity (alpha != 1)
102  inline const List<Tuple2<label, scalar>>& beta() const;
103 
104  //- Species concentration derivative of the pressure dependent term
105  inline void dcidc
106  (
107  const scalar p,
108  const scalar T,
109  const scalarField& c,
110  const label li,
112  ) const;
113 
114  //- Temperature derivative of the pressure dependent term
115  inline scalar dcidT
116  (
117  const scalar p,
118  const scalar T,
119  const scalarField& c,
120  const label li
121  ) const;
122 
123  //- Write to stream
124  inline void write(Ostream& os) const;
125 
126 
127  // Ostream Operator
128 
129  inline friend Ostream& operator<<
130  (
131  Ostream&,
132  const infiniteReactionRate&
133  );
134 };
135 
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 } // End namespace Foam
140 
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 
143 #include "infiniteReactionRateI.H"
144 
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 
147 #endif
148 
149 // ************************************************************************* //
dictionary dict
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.
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
scalar dcidT(const scalar p, const scalar T, const scalarField &c, const label li) const
Temperature derivative of the pressure dependent term.
void write(Ostream &os) const
Write to stream.
const dimensionedScalar & c
Speed of light in a vacuum.
scalar ddT(const scalar p, const scalar T, const scalarField &c, const label li) const
A class for handling words, derived from string.
Definition: word.H:59
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:54
const List< Tuple2< label, scalar > > & beta() const
Third-body efficiencies (beta = 1-alpha)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
infiniteReactionRate()
Null constructor.
static word type()
Return the type name.
A wordList with hashed indices for faster lookup by name.
Ostream & operator<<(Ostream &, const ensightPart &)
infinite reaction rate.
volScalarField & p
Namespace for OpenFOAM.