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.post2.tar.gz (2.0 MB 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.post2-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycsp_lib-1.4.0.post2.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • 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.post2.tar.gz
Algorithm Hash digest
SHA256 1f3fa3a67eff22f1d69d60a8a12a5cecb507c2fc82f75cceeb6d5cc98aa98d11
MD5 9fc3c0a862f29e967b5ec1953239bc0a
BLAKE2b-256 ef1893d1fe503d60bee84079074b8ac1d1b33c78279d0be1449b7ad52165c218

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycsp_lib-1.4.0.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e786fb88f250152829adec2ede8b5f6f005a00ef27f3e391e78decb34fbffeb
MD5 fe633010a192c6207141f63f1bbaac69
BLAKE2b-256 38baa1facc7cd91c1c681f2cf8d63580492e559ac92098c39a475f6091fc182c

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