15 #ifndef CT_IMPORTCTML_H
16 #define CT_IMPORTCTML_H
25 class SpeciesThermoFactory;
31 bool skipUndeclaredSpecies;
32 bool skipUndeclaredThirdBodies;
54 std::map<int, doublereal>& r2);
66 doublereal errorTolerance = 1.0e-3);
91 std::string default_phase,
92 std::vector<size_t>& spnum,
vector_fp& stoich,
135 std::string default_phase,
136 bool check_for_duplicates =
false);
void checkRxnElementBalance(Kinetics &kin, const ReactionData &rdata, doublereal errorTolerance)
This function will check a specific reaction to see if the elements balance.
Class XML_Node is a tree-based representation of the contents of an XML file.
bool installReactionArrays(const XML_Node &p, Kinetics &kin, std::string default_phase, bool check_for_duplicates)
Install information about reactions into the kinetics object, kin.
Base class for a phase with thermodynamic properties.
bool getReagents(const XML_Node &rxn, Kinetics &kin, int rp, std::string default_phase, std::vector< size_t > &spnum, vector_fp &stoich, vector_fp &order, const ReactionRules &rules)
Get the reactants or products of a reaction.
bool importKinetics(const XML_Node &phase, std::vector< ThermoPhase * > th, Kinetics *k)
Import a reaction mechanism for a phase or an interface.
doublereal isDuplicateReaction(std::map< int, doublereal > &r1, std::map< int, doublereal > &r2)
This function returns a ratio if two reactions are duplicates of one another, and 0...
Public interface for kinetics managers.
Rules for parsing and installing reactions.
Intermediate class which stores data about a reaction and its rate parameterization before adding the...
Base class for kinetics managers and also contains the kineticsmgr module documentation (see Kinetics...
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
void getRateCoefficient(const XML_Node &kf, Kinetics &kin, ReactionData &rdata, const ReactionRules &rules)
Read the rate coefficient data from the XML file.
Header file for class ThermoPhase, the base class for phases with thermodynamic properties, and the text for the Module thermoprops (see Thermodynamic Properties and class ThermoPhase).