20 KineticsFactory* KineticsFactory::s_factory = 0;
21 mutex_t KineticsFactory::kinetics_mutex;
23 static int ntypes = 6;
24 static string _types[] = {
"none",
"GasKinetics",
"GRI30",
"Interface",
"Edge",
"AqueousKinetics"};
25 static int _itypes[] = {0, cGasKinetics, cGRI30, cInterfaceKinetics, cEdgeKinetics, cAqueousKinetics};
50 Kinetics* KineticsFactory::
51 newKinetics(
XML_Node& phaseData, vector<ThermoPhase*> th)
58 string kintype = phaseData.
child(
"kinetics")[
"model"];
66 for (n = 0; n < ntypes; n++) {
67 if (kintype == _types[n]) {
92 case cInterfaceKinetics:
100 case cAqueousKinetics:
105 throw UnknownKineticsModel(
"KineticsFactory::newKinetics",
121 Kinetics* KineticsFactory::newKinetics(
string model)
126 for (n = 0; n < ntypes; n++) {
127 if (model == _types[n]) {
142 case cInterfaceKinetics:
147 throw UnknownKineticsModel(
"KineticsFactory::newKinetics",