Warning
This documentation is for an old version of Cantera. You can find docs for newer versions here.
- adddir(d)¶
Add a directory to the search path.
Adds directory d to the set of directories where Cantera looks for input and data files.
Parameters: d – Path to add to the MATLAB search path.
- ck2cti(infile, thermo, transport)¶
Convert a CHEMKIN input file to Cantera format.
Examples:
f = ck2cti('chem.inp') f = ck2cti('chem.inp', 'therm.dat') f = ck2cti('chem.inp', 'therm.dat', 'tran.dat')These 3 statements all create a Cantera input file ‘chem.cti.’ In the first case, the CK-format file contains all required species thermo data, while in the second case some or all thermo data is read from file ‘therm.dat.’ In the third form, the input file created will also contain transport property parameters. The function return value is a string containing the output file name.
Parameters:
- infile – Chemistry input file in CHEMKIN format. Required.
- thermo – Thermodynamic input file in CHEMKIN format. Optional if thermodynamic data is specified in the chemistry input file.
- transport – Transport input file in CHEMKIN format. Optional.
Returns: String with CTML output filename.
- cleanup()¶
Delete all stored Cantera objects and reclaim memory.
- geterr()¶
Get the error message from a Cantera error.
XML_Node class constructor
Parameters: |
|
---|---|
Returns: | Instance of class XML_Node() |
Add a child to the root.
Parameters: |
|
---|---|
Returns: | Instance of class XML_Node() |
Get the XML_Node attribute with a given key.
Parameters: |
|
---|---|
Returns: | Instance of class XML_Node() |
Build an XML_Node in memory from an input file.
Parameters: |
|
---|---|
Returns: | Instance of class XML_Node() |
Get the child of an XML_Node instance.
Parameters: |
|
---|---|
Returns: | Instance of class XML_Node() |
Get an XML element given its ID.
Parameters: |
|
---|---|
Returns: | Instance of class XML_Node() |
Get an XML element given its name.
Parameters: |
|
---|---|
Returns: | Instance of class XML_Node() |
Get the number of children of an XML_Node.
Parameters: | root – Instance of class XML_Node() |
---|---|
Returns: | Integer number of children of the input XML_Node |
Get the value at a location in an XML_Node
value(x) returns the value of the XML element. value(x, loc) is shorthand for value(child(x,loc))
Parameters: |
|
---|---|
Returns: | Instance of class XML_Node() |
Write XML_Node to file.
Parameters: |
|
---|---|
Returns: | Instance of class XML_Node() |