7 #ifndef KINETICS_FACTORY_H
8 #define KINETICS_FACTORY_H
17 class UnknownKineticsModel :
public CanteraError
20 UnknownKineticsModel(
const std::string& proc,
const std::string& kineticsModel) :
23 " does not match any known type.") {}
33 ScopedLock lock(kinetics_mutex);
41 ScopedLock lock(kinetics_mutex);
76 static mutex_t kinetics_mutex;
86 f = KineticsFactory::factory();
88 return f->newKinetics(phase, th);
97 f = KineticsFactory::factory();
99 return f->newKinetics(model);
Class XML_Node is a tree-based representation of the contents of an XML file.
Base class for factories.
virtual void deleteFactory()
Virtual abstract function that deletes the factory.
virtual Kinetics * newKinetics(XML_Node &phase, std::vector< ThermoPhase * > th)
Return a new kinetics manager that implements a reaction mechanism specified in a CTML file...
Kinetics * newKineticsMgr(XML_Node &phase, std::vector< ThermoPhase * > th, KineticsFactory *f=0)
Create a new kinetics manager.
Public interface for kinetics managers.
CanteraError(const std::string &procedure, const std::string &msg)
Normal Constructor for the CanteraError base class.
Base class for kinetics managers and also contains the kineticsmgr module documentation (see Kinetics...
File contains the FactoryBase class declarations.
Factory for kinetics managers.