#physics #thermodynamics #phase-equilibria #equations-of-state

feos-pets

PeTS状态方程及其相应的亥姆霍兹自由能函数的实现

1 个不稳定版本

0.1.0 2022年5月10日

#6#相平衡

MIT/Apache

63KB
1.5K SLoC

FeOs - PeTS

crate documentation documentation

在FeOs项目中实现了PeTS状态方程及其相应的亥姆霍兹自由能函数[^heier2018]。该项目包含Rust实现以及Python的绑定。

Python中使用

如果您想在Python中使用feos-pets,请参阅feos仓库feos包含多个状态方程实现,并封装在一个易于使用的Python包中。

FeOs

FeOs 是状态方程和经典密度泛函理论的框架

您可以在这里了解更多关于FeOs背后的原理。

安装

将以下内容添加到您的Cargo.toml

[dependencies]
feos-pets = "0.1"

测试构建python wheel

在已安装maturin的Python虚拟环境中,键入

maturin build --release --out dist --no-sdist -m build_wheel/Cargo.toml
pip install dist/feos_pets-0.1.0-[...].whl --force-reinstall

maturin develop --release -m build_wheel/Cargo.toml

[^heier2018]: M. Heier, S. Stephan, J. Liu, W.G. Chapman, H. Hasse & K. Langenbach (2018). Molecular Physics, 116(15-16), 2083-2094.

依赖项

~15–23MB
~341K SLoC