OpenFOAM logo
Open Source CFD Toolkit

LangmuirHinshelwoodReactionRate.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2005 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     LangmuirHinshelwoodReactionRate
00027 
00028 Description
00029     Power series reaction rate.
00030 
00031 SourceFiles
00032     LangmuirHinshelwoodReactionRateI.H
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef LangmuirHinshelwoodReactionRate_H
00037 #define LangmuirHinshelwoodReactionRate_H
00038 
00039 #include "scalarField.H"
00040 #include "typeInfo.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 /*---------------------------------------------------------------------------*\
00048                Class LangmuirHinshelwoodReactionRate Declaration
00049 \*---------------------------------------------------------------------------*/
00050 
00051 class LangmuirHinshelwoodReactionRate
00052 {
00053     // Private data
00054 
00055         static const label n_ = 5;
00056         scalar A_[n_];
00057         scalar Ta_[n_];
00058 
00059         label co_;
00060         label c3h6_;
00061         label no_;
00062 
00063 
00064 public:
00065 
00066     // Constructors
00067 
00068         //- Construct from components
00069         inline LangmuirHinshelwoodReactionRate
00070         (
00071             const scalar A[],
00072             const scalar Ta[],
00073             const label co,
00074             const label c3h6,
00075             const label no
00076         );
00077 
00078         //- Construct from Istream
00079         inline LangmuirHinshelwoodReactionRate
00080         (
00081             const speciesTable& species,
00082             Istream& is
00083         );
00084 
00085 
00086     // Member Functions
00087 
00088         //- Return the type name
00089         static word type()
00090         {
00091             return "LangmuirHinshelwood";
00092         }
00093 
00094         inline scalar operator()
00095         (
00096             const scalar T,
00097             const scalar p,
00098             const scalarField& c
00099         ) const;
00100 
00101 
00102     // Ostream Operator
00103 
00104         inline friend Ostream& operator<<
00105         (
00106             Ostream&,
00107             const LangmuirHinshelwoodReactionRate&
00108         );
00109 };
00110 
00111 
00112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00113 
00114 } // End namespace Foam
00115 
00116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00117 
00118 #include "LangmuirHinshelwoodReactionRateI.H"
00119 
00120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00121 
00122 #endif
00123 
00124 // ************************************************************************* //
For further information go to www.openfoam.org