Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Deprecated in favor of ansys-chemkin-core==0.1.1


PyAnsys Python MIT

Overview

PyChemkin (Ansys-chemkin package) provides pythonic access to Ansys Chemkin. It facilitates programmatic customization of Chemkin simulation workflow within the Python ecosystem and permits access to Chemkin property and rate utilities as well as selected reactor models:

  • Process Chemkin-compatible gas-phase mechanisms

  • Evaluate species and mixture thermodynamic and transport properties

  • Compute reaction rate of progress and species rate of production (ROP)

  • Combine gas mixtures isothermally or adiabatically

  • Find the equilibrium state of a gas mixture

  • Run gas-phase batch reactor models

For more information on Chemkin, see the Ansys Chemkin page on the Ansys website.

Installation

pip is the preferred installation method. You can use pip to install PyChemkin.

pip install ansys-chemkin

Verifying the installation

Invoke the Python interpreter interface from Windows’ command prompt and try to import the ansys-chemkin package as

import ansys.chemkin
  • PyChemkin is correctly installed if python returns

Chemkin version number = xxx
  • It is likely there is no Ansys product installed locally if python does not return anything.

  • The local Ansys Chemkin version needs to be updated to at least version 2025 Release 2 if Python returns

** PyChemkin does not support Chemkin versions older than 2025 R2

For more information, see Getting Started.

Basic usage

Here is a PyChemkin project to compute the density of mixture air. This code shows how to import PyChemkin (Ansys Chemkin) and use some basic capabilities:

import os

# import PyChemkin
import ansys.chemkin as chemkin

# create a Chemistry Set for GRI 3.0 mechanism in the data directory
mech_dir = os.path.join(chemkin.ansys_dir, "reaction", "data")
# set up mechanism file names
mech_file = os.path.join(mech_dir, "grimech30_chem.inp")
therm_file = os.path.join(mech_dir, "grimech30_thermo.dat")
tran_file = os.path.join(mech_dir, "grimech30_transport.dat")
# instantiate Chemistry Set 'GasMech'
GasMech = chemkin.Chemistry(chem=mech_file, therm=therm_file,  tran=tran_file,  label='GRI 3.0')
# pre-process the Chemistry Set
status = GasMech.preprocess()
# check preprocess status
if status != 0:
    # failed
    print(f'PreProcess: error encountered...code = {status:d}')
    print(f'see the summary file {GasMech.summaryfile} for details')
    exit()
# Create Mixture 'air' based on 'GasMech'
air = chemkin.Mixture(GasMech)
# set 'air' condition
# mixture pressure in [dynes/cm2]
air.pressure = 1.0 * chemkin.Patm
# mixture temperature in [K]
air.temperature = 300.0
# mixture composition in mole fractions
air.X = [('O2', 0.21), ('N2', 0.79)]
#
print(f"pressure    = {air.pressure/chemkin.Patm} [atm]")
print(f"temperature = {air.temperature} [K]")
# print the 'air' composition in mass fractions
air.list_composition(mode='mass')
# get 'air' mixture density [g/cm3]
print(f"the mixture density = {air.RHO} [g/cm3]")

For comprehensive usage information, see the Tutorials in the PyChemkin documentation.

Documentation and issues

Documentation for the latest stable release of PyChemkin is hosted at PyChemkin documentation.

In the upper right corner of the documentation’s title bar, there is an option for switching from viewing the documentation for the latest stable release to viewing the documentation for the development version or previously released versions.

User manuals and tutorials for Chemkin can be found at Chemkin Documents.

On the PyAnsys Chemkin Issues page, you can create issues to report bugs and request new features. On the PyChemkin Discussions page or the Discussions page on the Ansys Developer portal, you can post questions, share ideas, and get community feedback.

To reach the project support team, email pyansys.core@ansys.com.

Release files for ansys-chemkin 2025.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ansys-chemkin 2025.2.1
File Size Uploaded
ansys_chemkin-2025.2.1.tar.gz 131.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ansys-chemkin 2025.2.1
File Interpreter ABI Platform
ansys_chemkin-2025.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 283.6 kB

Release files / ansys_chemkin-2025.2.1.tar.gz

Download URL ansys_chemkin-2025.2.1.tar.gz
Size 131.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cbb49e4dada508e4d8ba9545cfe7d7602ca6f7d7d3e6a1c8b4016ff129000dd4
BLAKE2b-256 checksum
How to use checksums
ceec498c8a376e20e705ed040798ab41f4a4e20d2c9f31e038f4fe0b95995f7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 11, 2025.

Transparency log

Release files / ansys_chemkin-2025.2.1-py3-none-any.whl

Download URL ansys_chemkin-2025.2.1-py3-none-any.whl
Size 151.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccd9eee271d113e958cd180ff2de5bcafd6f9e4008a4a3eff922faf91a4b2570
BLAKE2b-256 checksum
How to use checksums
c22d56ad42cddab87669f233069b683ca2ef15258a8711b3ecb22d4a4e07c9e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 11, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

2025.2.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page