The chemistry.py module#
Summary#
Define and preprocess Chemkin chemistry set. |
|
Surface Chemkin material object. |
|
Surface phase object. |
Get current Pychemkin verbose mode. |
|
Set Pychemkin verbose mode. |
|
Return the Chemkin-CFD-API version number currently in use. |
|
Check the Chemkin-CFD-API vwersion. |
|
Return the local Ansys Chemkin bin directory. |
|
Return the local Ansys installation. |
|
Release Chemkin license and reset the Chemistry sets. |
|
Check whether the Chemistry Set is initialized in Chemkin-CFD-API. |
|
Switch to (re-activate) the Chemistry Set. |
|
Activate the Chemistry Set automatically and silently. |
|
Create a new Chemistry Set. |
|
Set the Chemistry Set Initialization flag to True. |
|
Verify if the chemistry set is currently activated. |
|
Check the chemistry set has surface chemistry data. |
|
Verify the gas chemistry sizes. |
|
Set up the temperature array for Chemkin-CFD-API calls. |
|
Get the length of Chemkin symbols. |
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.chemkin_bin_dir() str#
Return the local Ansys Chemkin bin directory.
- chemistry.ansys_dir() str#
Return the local Ansys installation.
- 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.verify_chemset_surface(chem_set_index: int) bool#
Check the chemistry set has surface chemistry data.
- chemistry.verify_chemset_sizes(chem_set_index: int, num_elements: int = -1, num_gas_species: int = -1, num_gas_reactions: int = -1) bool#
Verify the gas chemistry sizes.
- chemistry.set_temp_array(temp: float, temp_ele: float | None = None, temp_ion: float | None = None) numpy.typing.NDArray[numpy.double]#
Set up the temperature array for Chemkin-CFD-API calls.
- chemistry.get_symbol_length() int#
Get the length of Chemkin symbols.
- chemistry.MAX_SPECIES_LENGTH = 17#
- chemistry.COMPLETE = 0#
- chemistry.LP_c_char#
- chemistry.chemkin_verbose = True#