LXCat to YAML conversion#

Convert the LXCat integral cross-section data in XML format (LXCATML) to YAML format

usage: lxcat2yaml [-h] [--input INPUT] [--database DATABASE] [--mech MECH]
                  [--phase PHASE] [--insert] [--output OUTPUT]

Named Arguments#

--input

LXCat electron-collision cross sections input file, containing a list of the electron-collision plasma reactions with the electron energy levels and corresponding cross sections. Must be specified

--database

The name of the database. Optional. Use it when multiple databases exist in the input file.

--mech

Cantera yaml-format reaction mechanism file. The list of the species is used as the filter to determine which electron-collision reactions in the input file are parsed. In addition, the electron-collision reactions can be inserted automatically into the mechanism file with the argument –insert and become the output file.

--phase

This specifies the name of the phase in the mechanism file. Optional.

--insert

Enable inserting the electron-collision reactions into the mechanism file.Need to use with the argument –mech to provide the mechanism fileOptional.

Default: False

--output

Specifies the OUTPUT file name. By default, the output file name is the input file name with the extension changed to .yaml.

Example:

lxcat2yaml --input=mycs.xml --database=itikawa --mech=oxygen-plasma.yaml
           --phase=isotropic-electron-energy-plasma --insert
           --output=oxygen-itikawa-plasma.yaml

If the lxcat2yaml script is not on your path but the Cantera Python module is, lxcat2yaml can also be invoked by running:

python -m cantera.lxcat2yaml --input=mycs.xml

In both cases, the equal signs in the options are optional. In the second case, the xml file is converted to yaml without inserting the collision reactions into the mechanism file.