8 #ifndef KINETICS_FACTORY_H 9 #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 std::unique_lock<std::mutex> lock(kinetics_mutex);
41 std::unique_lock<std::mutex> lock(kinetics_mutex);
75 static std::mutex kinetics_mutex;
87 f = KineticsFactory::factory();
90 "The `KineticsFactory*` argument to this function is deprecated and" 91 " will be removed after Cantera 2.3.");
93 return f->newKinetics(phase, th);
104 f = KineticsFactory::factory();
107 "The `KineticsFactory*` argument to this function is deprecated and" 108 " will be removed after Cantera 2.3.");
110 return f->newKinetics(model);
Class XML_Node is a tree-based representation of the contents of an XML file.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
Kinetics * newKineticsMgr(XML_Node &phase, std::vector< ThermoPhase *> th, KineticsFactory *f=0)
Create a new kinetics manager.
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...
Public interface for kinetics managers.
Base class for kinetics managers and also contains the kineticsmgr module documentation (see Kinetics...
Factory class that supports registering functions to create objects.
CanteraError(const std::string &procedure, const std::string &msg, const Args &... args)
Normal Constructor for the CanteraError base class.
Namespace for the Cantera kernel.
File contains the FactoryBase class declarations.
Factory for kinetics managers.