Chaparro Gustavo, Mejía Andrés
Departamento de Ingeniería Química, Laboratorio de Cohesión, Universidad de Concepción, Concepción, Chile.
J Comput Chem. 2020 Nov;41(29):2504-2526. doi: 10.1002/jcc.26405. Epub 2020 Sep 1.
Phasepy is a Python based package for fluid phase equilibria and interfacial properties calculation from equation of state (EoS). Phasepy uses several tools (i.e., NumPy, SciPy, Pandas, Matplotlib) allowing use Phasepy under Jupyter Notebooks. Phasepy models phase equilibria with the traditional ϕ-γ and ϕ-ϕ approaches, where ϕ (fugacity coefficient) can be modeled as a perfect gas, virial gas or EoS fluid, whereas γ (activity coefficient) can be described by conventional models (NRTL, Wilson, Redlich-Kister expansion, and the group contribution modified-UNIFAC). Interfacial properties are based on the square gradient theory couple to ϕ-ϕ approach. The available EoSs are the cubic EoS family extended to mixtures through the quadratic, modified-Huron-Vidal, and Wong-Sandler mixing rules. Phasepy allows to analyze phase stability, compute phase equilibria, interfacial properties, and optimize their parameters for vapor-liquid, liquid-liquid, and vapor-liquid-liquid equilibria for multicomponent mixtures. Phasepy implementation, and robustness are illustrated for binary and ternary mixtures.
Phasepy是一个基于Python的软件包,用于根据状态方程(EoS)计算流体相平衡和界面性质。Phasepy使用多种工具(即NumPy、SciPy、Pandas、Matplotlib),允许在Jupyter Notebook中使用Phasepy。Phasepy采用传统的ϕ-γ和ϕ-ϕ方法对相平衡进行建模,其中ϕ(逸度系数)可以建模为理想气体、维里气体或EoS流体,而γ(活度系数)可以用传统模型(NRTL、Wilson、Redlich-Kister展开式和基团贡献修正-UNIFAC)来描述。界面性质基于与ϕ-ϕ方法耦合的平方梯度理论。可用的EoS是通过二次、修正-Huron-Vidal和Wong-Sandler混合规则扩展到混合物的立方EoS族。Phasepy允许分析相稳定性、计算相平衡、界面性质,并针对多组分混合物的气-液、液-液和气-液-液平衡优化其参数。通过二元和三元混合物说明了Phasepy的实现和稳健性。