Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
importKinetics.cpp File Reference

Declarations of global routines for the importing of kinetics data from XML files (see Input File Handling). More...

#include "cantera/kinetics/importKinetics.h"
#include "cantera/thermo/ThermoFactory.h"
#include "cantera/kinetics/ReactionData.h"
#include "cantera/kinetics/Reaction.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/ctml.h"
#include <cstring>
Include dependency graph for importKinetics.cpp:

Go to the source code of this file.

Namespaces

 Cantera
 Namespace for the Cantera kernel.
 

Functions

void checkRxnElementBalance (Kinetics &kin, const ReactionData &rdata, doublereal errorTolerance=1.0e-3)
 This function will check a specific reaction to see if the elements balance. More...
 
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. More...
 
static void getArrhenius (const XML_Node &node, int &labeled, doublereal &A, doublereal &b, doublereal &E)
 getArrhenius() parses the XML element called Arrhenius. More...
 
static void getStick (const XML_Node &node, Kinetics &kin, ReactionData &r, doublereal &A, doublereal &b, doublereal &E)
 getStick() processes the XML element called Stick that specifies the sticking coefficient reaction. More...
 
static void getCoverageDependence (const XML_Node &node, thermo_t &surfphase, ReactionData &rdata)
 Read the XML data concerning the coverage dependence of an interfacial reaction. More...
 
static void getFalloff (const XML_Node &f, ReactionData &rdata)
 Get falloff parameters for a reaction. More...
 
static void getEfficiencies (const XML_Node &eff, Kinetics &kin, ReactionData &rdata, const ReactionRules &rules)
 Get the enhanced collision efficiencies. More...
 
void getRateCoefficient (const XML_Node &kf, Kinetics &kin, ReactionData &rdata, const ReactionRules &rules)
 Read the rate coefficient data from the XML file. More...
 
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.0 otherwise. More...
 
bool installReactionArrays (const XML_Node &p, Kinetics &kin, std::string default_phase, bool check_for_duplicates=false)
 Install information about reactions into the kinetics object, kin. More...
 
bool importKinetics (const XML_Node &phase, std::vector< ThermoPhase * > th, Kinetics *kin)
 Import a reaction mechanism for a phase or an interface. More...
 
bool buildSolutionFromXML (XML_Node &root, const std::string &id, const std::string &nm, ThermoPhase *th, Kinetics *kin)
 Build a single-phase ThermoPhase object with associated kinetics mechanism. More...
 

Detailed Description

Declarations of global routines for the importing of kinetics data from XML files (see Input File Handling).

This file contains routines which are global routines, i.e., not part of any object. These routine take as input, ctml pointers to data, and pointers to Cantera objects. The purpose of these routines is to initialize the Cantera objects with data from the ctml tree structures.

Definition in file importKinetics.cpp.