Skip to main content

A collection of tools for the Computational Singular Perturbation analysis of chemically reacting flows

Project description

PyCSP

Screenshot A collection of tools based on Computational Singular Perturbation for the analysis of chemically reacting systems. Requires cantera >= 3.0, numpy, matplotlib. (for older versions of Cantera, i.e. Cantera>=2.5, download release v1.2.1)

Installation in a new environment called "pycsp" with Anaconda (suggested, oterwise skip to #3): From PyCSP folder

  1. conda create --name pycsp anaconda --file requirements.txt --channel default --channel anaconda --channel cantera
  2. conda activate pycsp
  3. pip install PyCSP-lib

Testing:

  1. enter the folder tests/
  2. run the command "python test_kernel.py"

Several examples are available in the Examples folder to test the functionalities related to:

  • exhausted modes (M)
  • tangential stretching rate (TSR)
  • CSP and TSR indices (importance indices, amplitude and timescale participatio indices, TSR amplitude/timescale participation indices)

Cantera chem-input files are required (.cti or .yaml, depending on the installed Cantera version). Cantera offers a utility to convert chemkin-format files into cantera-format: https://cantera.org/tutorials/ck2cti-tutorial.html

FluidFoam (https://github.com/fluiddyn/fluidfoam) is suggested as a direct interface with openFOAM data.

Warning

Datasets in the tsrAnalysis example folder are quite heavy. Due to limited github bandwidth, it may happen that "flamelet_state.dat" and "flamelet_rhsDiff.dat" are not correctly checked out. In that case, please write me an e-mail (riccardo.malpicagalassi [at] uniroma1.it). I will send you the files.

Documentation

Can be found in the /documentation folder

How to cite?

This code has an associated publication. In addition to mentioning this GitHub repository (see below), I would be grateful if you could cite the publication:

BibTex citation of this publication:

@article{MALPICAGALASSI2022108364,
title = {PyCSP: a Python package for the analysis and simplification of chemically reacting systems based on Computational Singular Perturbation},
journal = {Computer Physics Communications},
pages = {108364},
year = {2022},
issn = {0010-4655},
doi = {https://doi.org/10.1016/j.cpc.2022.108364},
url = {https://www.sciencedirect.com/science/article/pii/S0010465522000832},
author = {Riccardo {Malpica Galassi}}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycsp_lib-1.4.0.post1.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycsp_lib-1.4.0.post1-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file pycsp_lib-1.4.0.post1.tar.gz.

File metadata

  • Download URL: pycsp_lib-1.4.0.post1.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.15

File hashes

Hashes for pycsp_lib-1.4.0.post1.tar.gz
Algorithm Hash digest
SHA256 537dbf2c264e536d1467161f862aab5914d3263b3d5dcf4a7678cfc521e0a184
MD5 4b311b05e3c82268767f717dbd2ea054
BLAKE2b-256 7d67b346b23e4c7eb31352086db49954c010a4c0d4a72369291fd899c290e5c7

See more details on using hashes here.

File details

Details for the file pycsp_lib-1.4.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for pycsp_lib-1.4.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fe5b68f3518f53cac78fb0a26d2e3817d88e8d00fef94bea3043302d5d941af
MD5 a3878aee6011344e707d1ad3aaa133ce
BLAKE2b-256 55f2da424838dd5a4344df458a69d735bd572eabe4943d58bde7e17996937180

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page