31 extern std::string FP_Format;
33 extern std::string INT_Format;
75 const int value,
const std::string& unitsString=
"",
76 const std::string& typeString=
"");
122 const doublereal value,
const std::string& unitsString=
"",
123 const std::string& typeString=
"",
const doublereal minval =
Cantera::Undef,
171 const size_t n,
const doublereal*
const values,
172 const std::string& unitsString=
"",
const std::string& typeString=
"",
220 const doublereal*
const vals,
const std::string units =
"",
221 const std::string type =
"",
252 const std::string& valueString,
const std::string& typeString=
"");
305 const bool convert=
true,
const std::string& unitsString=
"",
306 const std::string& nodeName =
"floatArray");
369 std::vector<std::string>& val);
409 const std::vector<std::string>& keyStringRow,
410 const std::vector<std::string>& keyStringCol,
412 const bool matrixSymmetric =
false);
479 const std::string& type=
"");
546 doublereal& fltRtn,
const std::string& type=
"");
586 const bool convert=
true);
648 const std::string& name,
649 const std::string& defaultUnits,
650 const std::string& type=
"toSI");
680 std::string& modelName);
724 std::string& valueString, std::string& typeString);
767 std::string& typeString);
793 const std::string& nameString);
805 const int debug = 0);
819 void ct2ctml(
const char* file,
const int debug = 0);
828 void ck2cti(
const std::string& in_file,
const std::string& thermo_file=
"",
829 const std::string& transport_file=
"",
830 const std::string& id_tag=
"gas");
const std::string CTML_Version
const Specifying the CTML version number
void addNamedFloatArray(Cantera::XML_Node &node, const std::string &name, const int n, const doublereal *const vals, const std::string units, const std::string type, const doublereal minval, const doublereal maxval)
This function adds a child node with the name given by the first parameter with a value consisting of...
bool getOptionalModel(const Cantera::XML_Node &parent, const std::string &nodeName, std::string &modelName)
Get an optional model name from a named child node.
Class XML_Node is a tree-based representation of the contents of an XML file.
bool getOptionalFloat(const Cantera::XML_Node &parent, const std::string &name, doublereal &fltRtn, const std::string &type)
Get an optional floating-point value from a child element.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
doublereal getFloat(const Cantera::XML_Node &parent, const std::string &name, const std::string &type)
Get a floating-point value from a child element.
void addString(Cantera::XML_Node &node, const std::string &titleString, const std::string &valueString, const std::string &typeString)
This function adds a child node with the name string with a string value to the current node...
const doublereal Undef
Fairly random number to be used to initialize variables against to see if they are subsequently defin...
A class for 2D arrays stored in column-major (Fortran-compatible) form.
XML_Node * getByTitle(const Cantera::XML_Node &node, const std::string &title)
Search the child nodes of the current node for an XML Node with a Title attribute of a given name...
Header file for class Cantera::Array2D.
void ck2cti(const std::string &in_file, const std::string &thermo_file, const std::string &transport_file, const std::string &id_tag)
Convert a Chemkin-format mechanism into a CTI file.
Classes providing support for XML data files.
void addFloatArray(Cantera::XML_Node &node, const std::string &title, const size_t n, const doublereal *const vals, const std::string &units, const std::string &type, const doublereal minval, const doublereal maxval)
This function adds a child node with the name, "floatArray", with a value consisting of a comma separ...
doublereal getFloatCurrent(const Cantera::XML_Node &node, const std::string &type)
Get a floating-point value from the current XML element.
void addFloat(Cantera::XML_Node &node, const std::string &title, const doublereal val, const std::string &units, const std::string &type, const doublereal minval, const doublereal maxval)
This function adds a child node with the name, "float", with a value consisting of a single floating ...
int getPairs(const Cantera::XML_Node &node, std::vector< std::string > &key, std::vector< std::string > &val)
This function interprets the value portion of an XML element as a series of "Pairs" separated by whit...
void getString(const Cantera::XML_Node &node, const std::string &titleString, std::string &valueString, std::string &typeString)
This function reads a child node with the name string with a specific title attribute named titleStri...
void getIntegers(const Cantera::XML_Node &node, std::map< std::string, int > &v)
Get a vector of integer values from a child element.
void getNamedStringValue(const Cantera::XML_Node &node, const std::string &nameString, std::string &valueString, std::string &typeString)
This function attempts to read a named child node and returns with the contents in the value string...
doublereal getFloatDefaultUnits(const Cantera::XML_Node &parent, const std::string &name, const std::string &defaultUnits, const std::string &type)
Get a floating-point value from a child element with a defined units field.
void getFloats(const Cantera::XML_Node &node, std::map< std::string, double > &v, const bool convert)
Get a vector of floating-point values from a child element.
void getStringArray(const Cantera::XML_Node &node, std::vector< std::string > &v)
This function interprets the value portion of an XML element as a string.
void addInteger(Cantera::XML_Node &node, const std::string &title, const int val, const std::string &units, const std::string &type)
This function adds a child node with the name, "integer", with a value consisting of a single integer...
void getMatrixValues(const Cantera::XML_Node &node, const std::vector< std::string > &keyStringRow, const std::vector< std::string > &keyStringCol, Cantera::Array2D &retnValues, const bool convert, const bool matrixSymmetric)
This function interprets the value portion of an XML element as a series of "Matrix ids and entries" ...
void getMap(const Cantera::XML_Node &node, std::map< std::string, std::string > &m)
This routine is used to interpret the value portions of XML elements that contain colon separated pai...
std::string getChildValue(const Cantera::XML_Node &parent, const std::string &nameString)
This function reads a child node with the name, nameString, and returns its xml value as the return s...
int getInteger(const Cantera::XML_Node &parent, const std::string &name)
Get an integer value from a child element.
void get_CTML_Tree(Cantera::XML_Node *rootPtr, const std::string &file, const int debug)
Read an ctml file from a file and fill up an XML tree.
size_t getFloatArray(const Cantera::XML_Node &node, std::vector< doublereal > &v, const bool convert, const std::string &unitsString, const std::string &nodeName)
This function reads the current node or a child node of the current node with the default name...
Cantera::XML_Node getCtmlTree(const std::string &file)
Read an ctml file from a file and fill up an XML tree.