7 #ifndef KINETICS_FACTORY_H
8 #define KINETICS_FACTORY_H
18 class UnknownKineticsModel :
public CanteraError
21 UnknownKineticsModel(
const std::string& proc,
const std::string& kineticsModel) :
24 " does not match any known type.") {}
34 ScopedLock lock(kinetics_mutex);
42 ScopedLock lock(kinetics_mutex);
70 std::vector<ThermoPhase*> th);
80 static mutex_t kinetics_mutex;
90 f = KineticsFactory::factory();
92 return f->newKinetics(phase, th);
101 f = KineticsFactory::factory();
103 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.
Classes providing support for XML data files.
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.