infiniteReactionRate.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011-2012 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 /*---------------------------------------------------------------------------*\
47  Class infiniteReactionRate Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 {
52 public:
53 
54  // Constructors
55 
56  //- Null constructor
58  ();
59 
60  //- Construct from Istream
62  (
63  const speciesTable& species,
64  const dictionary& dict
65  );
66 
67 
68  // Member Functions
69 
70  //- Return the type name
71  static word type()
72  {
73  return "infinite";
74  }
75 
76  inline scalar operator()
77  (
78  const scalar p,
79  const scalar T,
80  const scalarField& c
81  ) const;
82 
83  //- Write to stream
84  inline void write(Ostream& os) const;
85 
86 
87  // Ostream Operator
88 
89  inline friend Ostream& operator<<
90  (
91  Ostream&,
93  );
94 };
95 
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 
99 } // End namespace Foam
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 #include "infiniteReactionRateI.H"
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #endif
108 
109 // ************************************************************************* //
Foam::infiniteReactionRate::infiniteReactionRate
infiniteReactionRate()
Null constructor.
Definition: infiniteReactionRateI.H:28
infiniteReactionRateI.H
p
p
Definition: pEqn.H:62
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
typeInfo.H
scalarField.H
Foam::infiniteReactionRate::type
static word type()
Return the type name.
Definition: infiniteReactionRate.H:70
Foam::infiniteReactionRate
infinite reaction rate.
Definition: infiniteReactionRate.H:49
Foam::Field
Pre-declare SubField and related Field type.
Definition: Field.H:57
Foam::hashedWordList
A wordList with hashed indices for faster lookup by name.
Definition: hashedWordList.H:57
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:55
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam::infiniteReactionRate::write
void write(Ostream &os) const
Write to stream.
Definition: infiniteReactionRateI.H:40
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::constant::universal::c
const dimensionedScalar c
Speed of light in a vacuum.
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53