Activity Coefficient Model Fitting for Binary Mixtures

版本 1.0.8 (2.9 MB) 作者: Robby Ching
A model fitting for Activity Coefficients of Binary Mixtures given Vapor-Liquid Equilibrium (VLE) Data
406.0 次下载
更新时间 2021/6/27

查看许可证

NOTE: Requires Optimization toolbox for the wilson.m, nrtl.m, margules2suffix.m and margules4suffix.m to work
It includes the 2-parameter models Margules, Van Laar, and Wilson for the excess Gibbs' energy, and consequently, for the activity coefficients. VLE data for a binary mixture must be available. They are stored in the variables:
x1-equilibirum liquid mol. frac of component 1
y1-equilibirum vapor mol. frac of component 1
P-system pressure
Before running the wilson.m, van laar.m, and margules.m, make sure these variables are loaded. The saturation pressures of the pure species must also be provided. The programs will calculate model parameters, the root mean-square for performace comparison, and then plots the system pressure base on the model and compared with the given experimental data. The equations used for both programs are all based on the ones presented by Smith, Van Ness, Abbott, and Swihart in their book "Introduction to Chemical Engineering Thermodynamics (8th ed.)." The sample problem in the documentation also came from this book.
For the UNIQUAC, provide the structural and binary interaction parameters, as well as the Antoine Coefficients for the two components. The equations used are from Prausnitz, Lichtenthaler, and Gomes de Azevedo in their book "Molecular Thermodynamics for Fluid-Phase Equilibria (3rd ed)."

引用格式

Robby Ching (2024). Activity Coefficient Model Fitting for Binary Mixtures (https://www.mathworks.com/matlabcentral/fileexchange/90302-activity-coefficient-model-fitting-for-binary-mixtures), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Thermodynamics and Heat Transfer 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.8

Added the following models:
NRTL
4-Suffix Margules
2-Suffix Margules
*The initial Margules model is 3-suffix (2 parameter model)

1.0.7

Updated the index of RMS, now base on the number of data points from the VLE data.

1.0.6

Fixed the SSE function. In the past versions, the evaluation works as: SSE(SSE(function)) since lsqnonlin already evaluates the SSE of the function. This has been fixed in this update.

1.0.5

Syntax 2 using polyfit is now the open code instead of mvregress for margules.m and van laar.m so no need to download the statistics and machine learning toolbox.

1.0.4

Update 2 on the Wilson, Van Laar and Margules Models

1.0.3

Updated the documentation for Wilson, Van Laar and Margules.

1.0.2

-Added a UNIQUAC model. All the models so far are still for isothermal conditions.
-Minor changes on Wilson, Van Laar, and Margules m files. There were indexes adjusted to n-1 instead of a value of 11.

1.0.1

The only data to be loaded are x1, y1 and P.

1.0.0