Cantera  2.0
Classes | Namespaces | Functions
importKinetics.h File Reference

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

#include <string>
#include "cantera/thermo/ThermoPhase.h"
#include "Kinetics.h"
Include dependency graph for importKinetics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ReactionRules
 Rules for parsing and installing reactions. More...
 

Namespaces

namespace  Cantera
 Provides class Nucleus.
 

Functions

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.
 
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.
 
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.
 
void getRateCoefficient (const XML_Node &kf, Kinetics &kin, ReactionData &rdata, const ReactionRules &rules)
 Read the rate coefficient data from the XML file.
 
bool installReactionArrays (const XML_Node &p, Kinetics &kin, std::string default_phase, bool check_for_duplicates=false)
 Create a new ThermoPhase object and initializes it according to the XML tree database.
 
bool importKinetics (const XML_Node &phase, std::vector< ThermoPhase * > th, Kinetics *kin)
 Import a reaction mechanism for a phase or an interface.
 
bool buildSolutionFromXML (XML_Node &root, std::string id, std::string nm, ThermoPhase *th, Kinetics *k)
 Build a single-phase ThermoPhase object with associated kinetics mechanism.
 

Detailed Description

Definitions of global routines for the importing of 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.h.