A collection of tools for the Computational Singular Perturbation analysis of chemically reacting flows
Project description
PyCSP
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
- conda create --name pycsp anaconda --file requirements.txt --channel default --channel anaconda --channel cantera
- conda activate pycsp
- pip install $PATH_TO_PyCSP_MAIN_FOLDER (e.g. pip install /Users/rmalpica/PyCSP)
Testing:
- enter the folder tests/
- 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:
- Malpica Galassi, R., PyCSP: a Python package for the analysis and simplification of chemically reacting systems based on Computational Singular Perturbation, Computer Physics Communications, 2022, https://doi.org/10.1016/j.cpc.2022.108364. (https://www.sciencedirect.com/science/article/pii/S0010465522000832)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycsp_lib-1.4.0.tar.gz.
File metadata
- Download URL: pycsp_lib-1.4.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b6480ea92601eb81efd90b084f4959c6dfe4e0208c8a97a98fa8b816e95c094
|
|
| MD5 |
74e2d0b420b06293f162bead6ce506c7
|
|
| BLAKE2b-256 |
b36375ee966d8ede9b6e12af772c6f836f451b5d898e1884d0e75f59a268c145
|
File details
Details for the file pycsp_lib-1.4.0-py3-none-any.whl.
File metadata
- Download URL: pycsp_lib-1.4.0-py3-none-any.whl
- Upload date:
- Size: 35.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c23aaeede40c5c98c2ed57a0758385a52d58515a93bacc6f65276076847951ed
|
|
| MD5 |
3d0fc6f83cd3ff0047fb7f1026568209
|
|
| BLAKE2b-256 |
acec13620300e54f6a021be28e142c19b24ce1fe2d64a20e8b3c144dce259951
|