## Main functions¶

Load a Chemkin input file located at path on disk to path, returning lists of the species and reactions in the Chemkin file. The ‘thermo_path’ point to a separate thermo file, or, if ‘None’ is specified, the function will look for the thermo database within the chemkin mechanism file. If generate_resonance_structures is True (default if omitted) then resonance isomers for each species are generated.

Load an RMG dictionary - containing species identifiers and the associated adjacency lists - from the file located at path on disk. Returns a dict mapping the species identifiers to the loaded species. If generate_resonance_structures is True (default if omitted) then resonance isomers for each species are generated.

Load a Chemkin transport properties file located at path and store the properties on the species in species_dict.

## Helper functions¶

Read a kinetics entry for a single reaction as loaded from a Chemkin file. The associated mapping of labels to species species_dict should also be provided. Returns a Reaction object with the reaction and its associated kinetics.

Parse the comments associated with a given reaction. If the comments come from RMG (Py or Java), parse them and extract the useful information. Return the reaction object based on the information parsed from these comments. If read if False, the reaction is returned as an “Unclassified” LibraryReaction.

Read a reactions block from a Chemkin file stream.

This function can also read the reactions.txt and pdepreactions.txt files from RMG-Java kinetics libraries, which have a similar syntax.

Read a thermodynamics entry for one species in a Chemkin file. Returns the label of the species and the thermodynamics model as a NASA object.