The chemistry.py module#

Summary#

Chemistry

Define and preprocess Chemkin chemistry set.

verbose

Get current Pychemkin verbose mode.

set_verbose

Set Pychemkin verbose mode.

chemkin_version

Return the Chemkin-CFD-API version number currently in use.

verify_version

Check the Chemkin-CFD-API vwersion.

done

Release Chemkin license and reset the Chemistry sets.

check_chemistryset

Check whether the Chemistry Set is initialized in Chemkin-CFD-API.

activate_chemistryset

Switch to (re-activate) the Chemistry Set.

force_activate_chemistryset

Activate the Chemistry Set automatically and silently.

chemistryset_new

Create a new Chemistry Set.

chemistryset_initialized

Set the Chemistry Set Initialization flag to True.

check_active_chemistryset

Verify if the chemistry set is currently activated.

Description#

Chemkin Chemistry utilities.

Module detail#

chemistry.verbose() bool#

Get current Pychemkin verbose mode.

chemistry.set_verbose(onoff: bool)#

Set Pychemkin verbose mode.

chemistry.chemkin_version() int#

Return the Chemkin-CFD-API version number currently in use.

chemistry.verify_version(min_version: int) bool#

Check the Chemkin-CFD-API vwersion.

chemistry.done()#

Release Chemkin license and reset the Chemistry sets.

chemistry.check_chemistryset(chem_index: int) bool#

Check whether the Chemistry Set is initialized in Chemkin-CFD-API.

chemistry.activate_chemistryset(chem_index: int) int#

Switch to (re-activate) the Chemistry Set.

chemistry.force_activate_chemistryset(chem_index: int)#

Activate the Chemistry Set automatically and silently.

chemistry.chemistryset_new(chem_index: int)#

Create a new Chemistry Set.

chemistry.chemistryset_initialized(chem_index: int)#

Set the Chemistry Set Initialization flag to True.

chemistry.check_active_chemistryset(chem_index: int) bool#

Verify if the chemistry set is currently activated.

chemistry.MAX_SPECIES_LENGTH = 17#
chemistry.COMPLETE = 0#
chemistry.LP_c_char#
chemistry.chemkin_verbose = True#