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;
83 return KineticsFactory::factory()->newKinetics(phase, th);
91 return KineticsFactory::factory()->newKinetics(model);
Class XML_Node is a tree-based representation of the contents of an XML file.
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.
Kinetics * newKineticsMgr(XML_Node &phase, std::vector< ThermoPhase *> th)
Create a new kinetics manager.
Namespace for the Cantera kernel.
File contains the FactoryBase class declarations.
Factory for kinetics managers.