Code Monkey home page Code Monkey logo

fe-ann-eos-mie's Introduction

Supplementary information: "Development of thermodynamically-consistent machine-learning Equations of State: Application to the Mie fluid"

This repository is part of the supplementary information of the article "Development of thermodynamically-consistent machine-learning Equations of State: Application to the Mie fluid" by Gustavo Chaparro and Erich A. Müller. This article introduces an artificial neural network (ANN) based equation of state for the Mie fluid , FE-ANN EoS.

The Mie potential is described as follows:

$$ U^{Mie} = C_{Mie} \epsilon \left[ \left(\frac{\sigma}{r}\right)^{\lambda_r} - \left(\frac{\sigma}{r}\right)^{\lambda_a} \right], \quad C_{Mie} = \frac{\lambda_r}{\lambda_r- \lambda_a} \left( \frac{\lambda_r}{\lambda_a}\right)^{\frac{\lambda_a}{\lambda_r - \lambda_a}} $$

Here, $\epsilon$ represents the potential well depth, $\sigma$ is the effective monomer diameter, $r$ is the centre-to-centre distance between two Mie monomers, and $\lambda_r$ and $\lambda_a$ are the repulsive and attractive exponent, respectively.

The FE-ANN EoS models the Helmholtz free energy of the Mie fluid as follows:

$$ A^{res} = ANN(\alpha_{vdw}, \rho, 1/T) - ANN(\alpha_{vdw}, \rho=0, 1/T) $$

Where, $A^{res}$ is the dimensionless residual Helmholtz free energy, $\rho$ is the dimensionless density, $T$ is the dimensionless temperature and $\alpha_{vdw}$ is defined a the Mie fluid as follows:

$$ \alpha_{vdw} = \mathcal{C}_{Mie} \left[ \left(\frac{1}{\lambda_a-3} \right) - \left(\frac{1}{\lambda_r-3} \right) \right]$$

This model has been trained using thermophysical properties of the Mie fluid that include first-order derivative properties such as the compressibility factor ( $Z$ ) and the internal energy ( $U$ ), and second-order derivative properties such as the isobaric heat capacity ( $C_V$ ), the thermal pressure coefficient ( $\gamma_V$ ), the isothermal compressibility ( $\rho\kappa_T$ ), thermal expansion coefficient ( $\alpha_P$ ), adiabatic index ( $\gamma$ ) and the Joule-Thomson coefficient ( $\mu_{JT}$ ).

Use of the FE-ANN EoS

The saved model is located in the fe-ann-eos folder. The model can be loaded using TensorFlow.

The following examples of using the FE-ANN EoS are provided in the examples folder.

  1. Computing 1st and 2nd order derivative properties with the FE-ANN EoS.
  2. Computing fluid phase equilibria with the FE-ANN EoS.

Prerequisites

  • NumPy
  • SciPy
  • matplotlib
  • TensorFlow (tested on version 2.4.1)

License information

See LICENSE.md for information on the terms & conditions for usage of this software and a DISCLAIMER OF ALL WARRANTIES.

Although not required by the license, if it is convenient for you, please cite this if used in your work. Please also consider contributing any changes you make back, and benefit the community.

fe-ann-eos-mie's People

Contributors

gustavochm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.