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-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 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;
89 
90  inline scalar ddT
91  (
92  const scalar p,
93  const scalar T,
94  const scalarField& c
95  ) const;
96 
97  //- Third-body efficiencies (beta = 1-alpha)
98  // non-empty only for third-body reactions
99  // with enhanced molecularity (alpha != 1)
100  inline const List<Tuple2<label, scalar>>& beta() const;
101 
102  //- Species concentration derivative of the pressure dependent term
103  inline void dcidc
104  (
105  const scalar p,
106  const scalar T,
107  const scalarField& c,
109  ) const;
110 
111  //- Temperature derivative of the pressure dependent term
112  inline scalar dcidT
113  (
114  const scalar p,
115  const scalar T,
116  const scalarField& c
117  ) const;
118 
119  //- Write to stream
120  inline void write(Ostream& os) const;
121 
122 
123  // Ostream Operator
124 
125  inline friend Ostream& operator<<
126  (
127  Ostream&,
128  const infiniteReactionRate&
129  );
130 };
131 
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace Foam
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #include "infiniteReactionRateI.H"
140 
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 
143 #endif
144 
145 // ************************************************************************* //
dictionary dict
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
void write(Ostream &os) const
Write to stream.
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:53
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.
const dimensionedScalar c
Speed of light in a vacuum.
Ostream & operator<<(Ostream &, const ensightPart &)
infinite reaction rate.
void dcidc(const scalar p, const scalar T, const scalarField &c, scalarField &dcidc) const
Species concentration derivative of the pressure dependent term.
scalar dcidT(const scalar p, const scalar T, const scalarField &c) const
Temperature derivative of the pressure dependent term.
volScalarField & p
scalar ddT(const scalar p, const scalar T, const scalarField &c) const
Namespace for OpenFOAM.