Skip to content

A deep learning package for reacting flow

License

Notifications You must be signed in to change notification settings

hanli94/deepflame-kit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepFlame-kit

DeepFlame-kit is a deep learning package for reacting flow.

Usage

Install

# First activate your deepflame environment
git clone https://github.com/caic99/deepflame-kit.git
cd deepflame-kit
pip install -e . # Will also install requirements
deepflame --help

Training

# First configure setup in `config.yaml`
cd deepflame-kit/examples/hy41
deepflame fit --config config.yaml
#    --trainer.max_epochs 100 # Append args if needed
# deepflame fit --help

The checkpoint with the best validation loss will be saved as a .ckpt file.

Infer

# Dataset: https://nb.bohrium.dp.tech/competitions/detail/8918899584?tab=datasets
cd DeepFlame-examples/1Dflame/Tu800K-Phi1.0
cp ~/deepflame-kit/deepflame/inference.py .
# Edit model checkpoint path in `inference.py`
source /opt/OpenFOAM-7/etc/bashrc
source ~/deepflame-dev/bashrc
rm -r 0.00*
./Allclean
./Allrun
reconstructPar
flameSpeed
# Reference value: flamePoint.x = 0.01011, flameSpeed = 2.14 m/s

Development

File Structure

deepflame: package and utils
- data.py: dataset and dataloader setup
- model.py: model definition
- trainer.py: training loop
- main.py: entrypoint
- utils.py: helper functions

examples:
- hy41: aviation kerosene, 41 species
  - config.yaml: training config
  - dataset.npy: training data and label (omitted for large size)
  - formation_enthalpies.npy: formation enthalpies of species

About

A deep learning package for reacting flow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%