![]() |
|
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 chemistryReader 00027 00028 Description 00029 00030 SourceFiles 00031 chemistryReader.C 00032 00033 \*---------------------------------------------------------------------------*/ 00034 00035 #ifndef chemistryReader_H 00036 #define chemistryReader_H 00037 00038 #include "typeInfo.H" 00039 #include "runTimeSelectionTables.H" 00040 #include "Reaction.H" 00041 #include "sutherlandTransport.H" 00042 #include "specieThermo.H" 00043 #include "janafThermo.H" 00044 #include "perfectGas.H" 00045 00046 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00047 00048 namespace Foam 00049 { 00050 00051 /*---------------------------------------------------------------------------*\ 00052 Class chemistryReader Declaration 00053 \*---------------------------------------------------------------------------*/ 00054 00055 class chemistryReader 00056 { 00057 00058 public: 00059 00060 // Public data types 00061 00062 typedef sutherlandTransport<specieThermo<janafThermo<perfectGas> > > 00063 reactionThermo; 00064 00065 typedef Reaction<reactionThermo> reaction; 00066 00067 private: 00068 00069 // Private Member Functions 00070 00071 //- Disallow default bitwise copy construct 00072 chemistryReader(const chemistryReader&); 00073 00074 //- Disallow default bitwise assignment 00075 void operator=(const chemistryReader&); 00076 00077 00078 public: 00079 00080 //- Runtime type information 00081 TypeName("chemistryReader"); 00082 00083 00084 // Constructors 00085 00086 //- Construct null 00087 chemistryReader() 00088 {} 00089 00090 00091 // Declare run-time constructor selection table 00092 00093 declareRunTimeSelectionTable 00094 ( 00095 autoPtr, 00096 chemistryReader, 00097 dictionary, 00098 ( 00099 const dictionary& thermoDict 00100 ), 00101 (thermoDict) 00102 ); 00103 00104 00105 // Selectors 00106 00107 //- Select constructed from dictionary 00108 static autoPtr<chemistryReader> New(const dictionary& thermoDict); 00109 00110 00111 // Destructor 00112 00113 virtual ~chemistryReader() 00114 {} 00115 00116 00117 // Member Functions 00118 00119 virtual const speciesTable& species() const = 0; 00120 virtual const HashPtrTable<reactionThermo>& specieThermo() const = 0; 00121 virtual const SLPtrList<reaction>& reactions() const = 0; 00122 }; 00123 00124 00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00126 00127 } // End namespace Foam 00128 00129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00130 00131 #endif 00132 00133 // ************************************************************************* //