8#ifndef KINETICS_FACTORY_H
9#define KINETICS_FACTORY_H
25 " does not match any known type.") {
27 "Unused. To be removed after Cantera 2.6.");
38 std::unique_lock<std::mutex> lock(kinetics_mutex);
46 std::unique_lock<std::mutex> lock(kinetics_mutex);
83 static std::mutex kinetics_mutex;
94 return KineticsFactory::factory()->newKinetics(phase, th);
102 return KineticsFactory::factory()->newKinetics(model);
110 shared_ptr<Kinetics> kin(KineticsFactory::factory()->
newKinetics(model));
126unique_ptr<Kinetics>
newKinetics(
const std::vector<ThermoPhase*>& phases,
127 const AnyMap& phaseNode,
128 const AnyMap& rootNode=AnyMap());
141unique_ptr<Kinetics>
newKinetics(
const std::vector<ThermoPhase*>& phases,
142 const std::string& filename,
143 const std::string& phase_name);
155void addReactions(Kinetics& kin,
const AnyMap& phaseNode,
156 const AnyMap& rootNode=AnyMap());
File contains the FactoryBase class declarations.
Base class for kinetics managers and also contains the kineticsmgr module documentation (see Kinetics...
Base class for exceptions thrown by Cantera classes.
CanteraError()
Protected default constructor discourages throwing errors containing no information.
Factory class that supports registering functions to create objects.
Factory for kinetics managers.
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.
virtual void deleteFactory()
Virtual abstract function that deletes the factory.
Public interface for kinetics managers.
Class XML_Node is a tree-based representation of the contents of an XML file.
Namespace for the Cantera kernel.
void addReactions(Kinetics &kin, const AnyMap &phaseNode, const AnyMap &rootNode=AnyMap())
void warn_deprecated(const std::string &source, const AnyBase &node, const std::string &message)
A deprecation warning for syntax in an input file.
Kinetics * newKineticsMgr(XML_Node &phase, std::vector< ThermoPhase * > th)
Create a new kinetics manager.
shared_ptr< Kinetics > newKinetics(const std::string &model)
Create a new Kinetics instance.