chemistryReader.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef chemistryReader_H
00037 #define chemistryReader_H
00038
00039 #include "typeInfo.H"
00040 #include "runTimeSelectionTables.H"
00041 #include "Reaction.H"
00042
00043
00044
00045 namespace Foam
00046 {
00047
00048
00049
00050
00051
00052 template<class ThermoType>
00053 class chemistryReader
00054 {
00055
00056
00057
00058 chemistryReader(const chemistryReader&);
00059
00060
00061 void operator=(const chemistryReader&);
00062
00063
00064 public:
00065
00066
00067 TypeName("chemistryReader");
00068
00069
00070 typedef ThermoType thermoType;
00071
00072
00073
00074
00075
00076 chemistryReader()
00077 {}
00078
00079
00080
00081
00082 declareRunTimeSelectionTable
00083 (
00084 autoPtr,
00085 chemistryReader,
00086 dictionary,
00087 (
00088 const dictionary& thermoDict
00089 ),
00090 (thermoDict)
00091 );
00092
00093
00094
00095
00096
00097 static autoPtr<chemistryReader> New(const dictionary& thermoDict);
00098
00099
00100
00101 virtual ~chemistryReader()
00102 {}
00103
00104
00105
00106
00107 virtual const speciesTable& species() const = 0;
00108
00109 virtual const HashPtrTable<ThermoType>& speciesThermo() const = 0;
00110
00111 virtual const SLPtrList<Reaction<ThermoType> >& reactions() const = 0;
00112 };
00113
00114
00115
00116
00117 }
00118
00119
00120
00121 #define makeChemistryReader(Thermo) \
00122 \
00123 defineTemplateTypeNameAndDebug \
00124 ( \
00125 chemistryReader<Thermo>, \
00126 0 \
00127 ); \
00128 \
00129 defineTemplateRunTimeSelectionTable(chemistryReader<Thermo>, dictionary);
00130
00131
00132 #define makeChemistryReaderType(SS, Thermo) \
00133 \
00134 defineNamedTemplateTypeNameAndDebug(SS<Thermo>, 0); \
00135 \
00136 chemistryReader<Thermo>::adddictionaryConstructorToTable<SS<Thermo> > \
00137 add##SS##Thermo##ConstructorToTable_;
00138
00139
00140 #define addChemistryReaderType(SS, Thermo) \
00141 \
00142 defineNamedTemplateTypeNameAndDebug(SS, 0); \
00143 \
00144 chemistryReader<Thermo>::adddictionaryConstructorToTable<SS> \
00145 add##SS##Thermo##ConstructorToTable_;
00146
00147
00148
00149
00150 #ifdef NoRepository
00151 # include "chemistryReader.C"
00152 #endif
00153
00154
00155
00156 #endif
00157
00158
Copyright © 2000-2009 OpenCFD Ltd