21 KineticsFactory* KineticsFactory::s_factory = 0;
22 std::mutex KineticsFactory::kinetics_mutex;
25 vector<ThermoPhase*> th)
30 string kintype = phaseData.
child(
"kinetics")[
"model"];
42 KineticsFactory::KineticsFactory() {
43 reg(
"none", []() {
return new Kinetics(); });
44 reg(
"gaskinetics", []() {
return new GasKinetics(); });
45 reg(
"interface", []() {
return new InterfaceKinetics(); });
46 reg(
"edge", []() {
return new EdgeKinetics(); });
47 reg(
"aqueouskinetics", []() {
return new AqueousKinetics(); });
50 Kinetics* KineticsFactory::newKinetics(
const string& model)
52 return create(ba::to_lower_copy(model));
Class XML_Node is a tree-based representation of the contents of an XML file.
bool importKinetics(const XML_Node &phase, std::vector< ThermoPhase *> th, Kinetics *k)
Import a reaction mechanism for a phase or an interface.
Classes providing support for XML data files.
Public interface for kinetics managers.
XML_Node & child(const size_t n) const
Return a changeable reference to the n'th child of the current node.
Definitions of global routines for the importing of data from XML files (see Input File Handling)...
Namespace for the Cantera kernel.