Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / src / thermophysicalModels / specie / reaction / reactionRate / JanevReactionRate / JanevReactionRate.H
blob9b93c9ad99be3d2785eb778041fdbac460ac5a29
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     | Version:     3.2
5     \\  /    A nd           | Web:         http://www.foam-extend.org
6      \\/     M anipulation  | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
8 License
9     This file is part of foam-extend.
11     foam-extend 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 3 of the License, or (at your
14     option) any later version.
16     foam-extend is distributed in the hope that it will be useful, but
17     WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19     General Public License for more details.
21     You should have received a copy of the GNU General Public License
22     along with foam-extend.  If not, see <http://www.gnu.org/licenses/>.
24 Class
25     Foam::JanevReactionRate
27 Description
28     Janev, Langer, Evans and Post reaction rate.
30 SourceFiles
31     JanevReactionRateI.H
33 \*---------------------------------------------------------------------------*/
35 #ifndef JanevReactionRate_H
36 #define JanevReactionRate_H
38 #include "scalarField.H"
39 #include "typeInfo.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 namespace Foam
46 /*---------------------------------------------------------------------------*\
47                            Class JanevReactionRate Declaration
48 \*---------------------------------------------------------------------------*/
50 class JanevReactionRate
52     // Private data
54         scalar A_;
55         scalar beta_;
56         scalar Ta_;
58         static const label nb_ = 9;
59         scalar b_[nb_];
62 public:
64     // Constructors
66         //- Construct from components
67         inline JanevReactionRate
68         (
69             const scalar A,
70             const scalar beta,
71             const scalar Ta,
72             const scalar b[]
73         );
75         //- Construct from Istream
76         inline JanevReactionRate
77         (
78             const speciesTable& species,
79             Istream& is
80         );
83     // Member Functions
85         //- Return the type name
86         static word type()
87         {
88             return "Janev";
89         }
91         inline scalar operator()
92         (
93             const scalar T,
94             const scalar p,
95             const scalarField& c
96         ) const;
99     // Ostream Operator
101         inline friend Ostream& operator<<
102         (
103             Ostream&,
104             const JanevReactionRate&
105         );
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 } // End namespace Foam
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 #include "JanevReactionRateI.H"
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 #endif
121 // ************************************************************************* //