Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyleniemeyer/create_rate_subs
Create hardcoded species and reaction rate subroutines from Chemkin-style mechanisms
https://github.com/kyleniemeyer/create_rate_subs
Last synced: about 1 month ago
JSON representation
Create hardcoded species and reaction rate subroutines from Chemkin-style mechanisms
- Host: GitHub
- URL: https://github.com/kyleniemeyer/create_rate_subs
- Owner: kyleniemeyer
- License: other
- Created: 2013-01-04T17:02:30.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-01-05T01:05:33.000Z (almost 9 years ago)
- Last Synced: 2024-06-11T17:43:06.580Z (7 months ago)
- Language: Python
- Size: 107 KB
- Stars: 7
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
create\_rate\_subs
=======
[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.44336.svg)](http://dx.doi.org/10.5281/zenodo.44336)This utility creates species and reaction rate subroutines for either C or CUDA from a Chemkin- or Cantera-format reaction mechanism.
Usage
-------`create\_rate\_subs` can be run either as an executable or script via Python. To run as an executable, from the command line change to the proper directory, change the file mode to executable and run:
chmod +x create_rate_subs.py
./create_rate_subs [options]To run it as a script, change to the appropriate directory and run:
python create_rate_subs.py [options]
The generated source code is placed within the `out` directory, which is created if it doesn't exist initially.
Options
-------In the above, `[options]` indicates where command line options should be specified. The options available can be seen using `-h` or `--help`, or below:
-h, --help show this help message and exit
-l {c,cuda,fortran,matlab}, --lang {c,cuda,fortran,matlab}
Programming language for output source files.
-i INPUT, --input INPUT
Input mechanism filename (e.g., mech.dat).
-t THERMO, --thermo THERMO
Thermodynamic database filename (e.g., therm.dat), or
nothing if in mechanism.
-ls LAST_SPECIES, --last_species LAST_SPECIES
The name of the species to set as the last in the
mechanism. If not specified, defaults to the first of
N2, AR, and HE in the mechanism.License
-------`create_rate_subs` is released under the modified BSD license, see LICENSE for details.
Citation
--------If you use this software as part of a scholarly publication, please cite the software directly using the DOI: [10.5281/zenodo.44336](http://dx.doi.org/10.5281/zenodo.44336)
The following paper includes the first mention of this software, in addition to some description:
* KE Niemeyer and CJ Sung. Accelerating moderately stiff chemical kinetics in reactive-flow simulations using GPUs. *J. Comput. Phys.*, 256:854-871, 2014. doi:[10.1016/j.jcp.2013.09.025](http://dx.doi.org/10.1016/j.jcp.2013.09.025)
Author
------Created by [Kyle Niemeyer](http://kyleniemeyer.com). Email address: [[email protected]](mailto:[email protected])