From 190298ea9ce1c4be471c00e13585fb8b68f1b53a Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Mon, 28 Jun 2004 23:49:24 +0000 Subject: [PATCH] Added the installSpecies() declaration back in. This is needed for the particle species thermo object. It's in the cpp file, but just not declared here. --- Cantera/src/importCTML.h | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/Cantera/src/importCTML.h b/Cantera/src/importCTML.h index f8e9011b5..95814c34b 100755 --- a/Cantera/src/importCTML.h +++ b/Cantera/src/importCTML.h @@ -73,8 +73,29 @@ namespace Cantera { XML_Node* get_XML_NameID(const string& nameTarget, const string& file_ID, XML_Node* root); - //bool installSpecies(int k, const XML_Node& s, thermo_t& p, - // SpeciesThermo& spthermo, int rule); + /** + * Install a species into a ThermoPhase object, which defines + * the phase thermodynamics and speciation. + * + * This routine first gathers the information from the Species XML + * tree and calls addUniqueSpecies() to add it to the + * ThermoPhase object, p. + * This information consists of: + * ecomp[] = element composition of species. + * chgr = electric charge of species + * name = string name of species + * sz = size of the species + * (option double used a lot in thermo) + * + * Then, the routine processes the "thermo" XML element and + * calls underlying utility routines to read the XML elements + * containing the thermodynamic information for the reference + * state of the species. Failures or lack of information trigger + * an "UnknownSpeciesThermoModel" exception being thrown. + */ + bool installSpecies(int k, const XML_Node& s, thermo_t& p, + SpeciesThermo& spthermo, int rule, + SpeciesThermoFactory* spfactory); bool importPhase(XML_Node& phase, ThermoPhase* th, SpeciesThermoFactory* spfactory = 0);