Skip to content

fgvangessel-umd/ml-eos

Repository files navigation

ML EOS

Thermo-Informed Neural network

The ML EOS package provides a complete Python framework for training a deep neural network from scratch to reproduce a legacy (JWL) equation of state (EOS). The JWL EOS has been widely used to represent the thermodynamic equation relating the state variables of an ideal explosive product gases behind a detonation front. The JWL expression for pressure and sound velocity are:

$$P(\rho, e) = A \left[ 1 - \frac{\omega \rho}{\rho_0 R_1} \right] e^{-\frac{R_1 \rho_0}{\rho}} +B \left[ 1 - \frac{\omega \rho}{\rho_0 R_2} \right] e^{-\frac{R_2 \rho_0}{\rho}} + \omega e \rho \qquad ; \qquad c^2(\rho, e) = \left( \frac{\partial P}{\partial \rho} \right)_e + \frac{P}{\rho^2} \left( \frac{\partial P}{\partial e} \right)_{\rho}$$

Installation

You can install and utilize this repo by executing the following commands

git clone git@github.com:fgvangessel-umd/ml-eos.git
cd ml_eos
conda env create -f torch_env_reqs.yml
conda activate torch_env
python train_model

Usage

Changes to the default parameters of this project (e.g. JWL EOS parameters, training hyperparameters, and number of training data points) are controlled through the config.yaml file.

NN Predictions

About

Machine learning-based equation of state

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages