initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / src / thermophysicalModels / specie / reaction / reactionRate / JanevReactionRate / JanevReactionRate.H
blob6c5c2c53a783c72f2b74c023ac4e601d87082df7
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::JanevReactionRate
28 Description
29     Janev, Langer, Evans and Post reaction rate.
31 SourceFiles
32     JanevReactionRateI.H
34 \*---------------------------------------------------------------------------*/
36 #ifndef JanevReactionRate_H
37 #define JanevReactionRate_H
39 #include "scalarField.H"
40 #include "typeInfo.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
47 /*---------------------------------------------------------------------------*\
48                            Class JanevReactionRate Declaration
49 \*---------------------------------------------------------------------------*/
51 class JanevReactionRate
53     // Private data
55         scalar A_;
56         scalar beta_;
57         scalar Ta_;
59         static const label nb_ = 9;
60         scalar b_[nb_];
63 public:
65     // Constructors
67         //- Construct from components
68         inline JanevReactionRate
69         (
70             const scalar A,
71             const scalar beta,
72             const scalar Ta,
73             const scalar b[]
74         );
76         //- Construct from Istream
77         inline JanevReactionRate
78         (
79             const speciesTable& species,
80             Istream& is
81         );
84     // Member Functions
86         //- Return the type name
87         static word type()
88         {
89             return "Janev";
90         }
92         inline scalar operator()
93         (
94             const scalar T,
95             const scalar p,
96             const scalarField& c
97         ) const;
100     // Ostream Operator
102         inline friend Ostream& operator<<
103         (
104             Ostream&,
105             const JanevReactionRate&
106         );
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 } // End namespace Foam
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 #include "JanevReactionRateI.H"
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 #endif
122 // ************************************************************************* //