initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / src / thermophysicalModels / specie / reaction / reactionRate / LangmuirHinshelwood / LangmuirHinshelwoodReactionRate.H
blobc9b9c0e26dcdfa1aec6b5007b4a2eb209c75df57
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2008 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
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 the
13     Free Software Foundation; either version 2 of the License, or (at your
14     option) any later version.
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.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM; if not, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 Class
26     Foam::LangmuirHinshelwoodReactionRate
28 Description
29     Power series reaction rate.
31 SourceFiles
32     LangmuirHinshelwoodReactionRateI.H
34 \*---------------------------------------------------------------------------*/
36 #ifndef LangmuirHinshelwoodReactionRate_H
37 #define LangmuirHinshelwoodReactionRate_H
39 #include "scalarField.H"
40 #include "typeInfo.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
47 /*---------------------------------------------------------------------------*\
48                Class LangmuirHinshelwoodReactionRate Declaration
49 \*---------------------------------------------------------------------------*/
51 class LangmuirHinshelwoodReactionRate
53     // Private data
55         static const label n_ = 5;
56         scalar A_[n_];
57         scalar Ta_[n_];
59         label co_;
60         label c3h6_;
61         label no_;
64 public:
66     // Constructors
68         //- Construct from components
69         inline LangmuirHinshelwoodReactionRate
70         (
71             const scalar A[],
72             const scalar Ta[],
73             const label co,
74             const label c3h6,
75             const label no
76         );
78         //- Construct from Istream
79         inline LangmuirHinshelwoodReactionRate
80         (
81             const speciesTable& species,
82             Istream& is
83         );
86     // Member Functions
88         //- Return the type name
89         static word type()
90         {
91             return "LangmuirHinshelwood";
92         }
94         inline scalar operator()
95         (
96             const scalar T,
97             const scalar p,
98             const scalarField& c
99         ) const;
102     // Ostream Operator
104         inline friend Ostream& operator<<
105         (
106             Ostream&,
107             const LangmuirHinshelwoodReactionRate&
108         );
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 } // End namespace Foam
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 #include "LangmuirHinshelwoodReactionRateI.H"
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 #endif
124 // ************************************************************************* //