Skip to content

Implicit automatic differentiation of equations of state and phase equilibria

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
license-apache
MIT
license-mit
Notifications You must be signed in to change notification settings

feos-org/feos-ad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FeOs-AD - Implicit automatic differentiation of equations of state and phase equilibria

crate documentation

The FeOs-AD crate builds on the implementation of phase equilibrium calculations in FeOs to provide implicit automatic differentiation of properties and phase equilibria based on Helmholtz energy equations of state. Derivatives can be determined for any inputs, like temperature or pressure, but also model parameters.

Derivatives are calculated using forward automatic differentiation with generalized (hyper-) dual numbers from the num-dual crate.

Contents

For now, the most important properties and phase equilibria are implemented:

  • State construction
    • from temperature and pressure
    • from pressure and entropy
    • from pressure and enthalpy
    • critical points
  • Phase equilibria
    • bubble points
    • dew points
    • tp flash
  • Properties
    • pressure, molar entropy, molar enthalpy

The following models are implemented:

  • PC-SAFT for pure components
  • heterosegmented gc-PC-SAFT for pure components and mixtures
  • The Joback & Reid GC method for ideal gas heat capacities

Installation

Just add the dependency to your Cargo.toml

feos-ad = "0.1"

About

Implicit automatic differentiation of equations of state and phase equilibria

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
license-apache
MIT
license-mit

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages