Giter Site home page Giter Site logo

deepflame-kit's Introduction

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 --model.dec_size=[512,128] # Append args if needed
# deepflame fit --help

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

Infer

# Dataset Reference: https://nb.bohrium.dp.tech/competitions/detail/8918899584?tab=datasets
cd deepflame-kit/examples/Tu800K-Phi1.0
# !! Set the model config and weight paths in `constant/CanteraTorchProperties`
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

deepflame-kit's People

Contributors

caic99 avatar hanli94 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

hanli94

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.