LXCAT2YAML(1)

NAME
lxcat2yaml - Convert LXCat integral cross-section data to YAML format

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

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

OPTIONS

-h, --help
    Show this help message and exit.

--input 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 DATABASE
    The name of the database. Optional. Use it when multiple databases exist in the input file.

--mech 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 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 file. Optional.

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

EXAMPLES

Basic usage with database and mechanism insertion:

    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.

SEE ALSO
Cantera documentation at https://cantera.org