Science Score: 75.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
✓Institutional organization owner
Organization ihmegroup has institutional domain (fxlab.stanford.edu) -
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.8%) to scientific vocabulary
Repository
FPV flamelet table generation software
Basic Info
- Host: GitHub
- Owner: IhmeGroup
- License: mit
- Language: Python
- Default Branch: main
- Size: 124 KB
Statistics
- Stars: 6
- Watchers: 6
- Forks: 4
- Open Issues: 2
- Releases: 2
Metadata Files
README.md
FPVgen
FPVgen is a software tool for generating flamelet progress variable (FPV) tables for combustion simulations. It handles the generation of flamelet solutions for counterflow diffusion flames, including the computation of complete S-curves with stable, unstable, and extinction branches.
Installation
Note: This repository requires Cantera >= 3.1.
To install FPVgen, follow these steps:
Clone the repository:
sh git clone https://github.com/IhmeGroup/FPVgen.git cd FPVgenCreate a virtual environment and activate it (using
venvorconda): ```shUsing venv
python -m venv fpvgen source fpvgen/bin/activate # On Windows use
fpvgen\Scripts\activateUsing conda
conda create --name fpvgen python==3.12 pip conda activate fpvgen ```
Install FPVgen and its dependencies using
pip:sh pip install .
Basic Structure of an Input File
The input file for FPVgen uses TOML format. Below is an example of the structure of a minimal input file:
```toml
input.toml
Configuration for flamelet table generation
[mechanism] file = "gri30.yaml" # Path to mechanism file transportmodel = "mixture-averaged" # Transport model: "unity-Lewis-number", "mixture-averaged", or "multicomponent" progdef = { CO = 1.0, H2 = 1.0, CO2 = 1.0, H2O = 1.0 } # Progress variable definition
[conditions] pressure = 101325.0 # Operating pressure in Pa
[fuel_inlet] composition = { CH4 = 1.0 } # Pure methane temperature = 300.0 # Temperature in K
[oxidizer_inlet] composition = { O2 = 0.21, N2 = 0.79 } # Air temperature = 300.0 # Temperature in K ```
A comprehensive input file with all available options may be found at sample/input.toml
Usage
Generating Flamelet Tables
To run the full process, including computation of flamelets, plotting of results, and assembly of the table, run the following command:
sh
generate_table <input> [--verbose]
<input>: Path to the TOML input file.--verbose: Enable verbose logging (optional).
Plotting Flamelet Solutions
To plot flamelet solutions from an HDF5 file, run the following command:
sh
plot_flamelets <solutions_file> [-o <output_dir>] [-v]
<solutions_file>: Path to the HDF5 solutions file.-o <output_dir>: Output directory for plots (optional, default: same as solutions file).-v: Enable verbose logging (optional).
Assembling FPV Table
To assemble the FPV table from existing solutions, run the following command:
sh
assemble_table <solutions_file> <output_dir> [--verbose]
<solutions_file>: Path to the HDF5 solutions file.<output_dir>: Directory to save the assembled FPV table.--verbose: Enable verbose logging (optional).
License
This project is licensed under the MIT License. See the LICENSE file for details.
Citation
Citation information is provided via Zenodo: 10.5281/zenodo.14728543
Owner
- Name: Laboratory of Fluids in Complex Environments
- Login: IhmeGroup
- Kind: organization
- Email: mihme@stanford.edu
- Location: Stanford, CA
- Website: https://fxlab.stanford.edu
- Twitter: FxLabStanford
- Repositories: 4
- Profile: https://github.com/IhmeGroup
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Bonanni" given-names: "Matthew" orcid: "https://orcid.org/0000-0002-8671-7955" - family-names: "Ihme" given-names: "Matthias" orcid: "https://orcid.org/0000-0002-4158-7050" - family-names: "Laboratory of Fluids in Complex Environments" title: "FPVgen" version: 0.1.0 doi: 10.5281/zenodo.14728543 date-released: 2025-01-23 url: "https://github.com/IhmeGroup/FPVgen"
GitHub Events
Total
- Create event: 10
- Release event: 2
- Issues event: 4
- Watch event: 8
- Delete event: 2
- Push event: 65
- Pull request event: 4
- Fork event: 3
Last Year
- Create event: 10
- Release event: 2
- Issues event: 4
- Watch event: 8
- Delete event: 2
- Push event: 65
- Pull request event: 4
- Fork event: 3
Dependencies
- cantera >=3.1.0a4
- h5py *
- matplotlib *
- numpy *
- pandas *
- scipy *
- tomli *