Activity Coefficient Model Fitting for Binary Mixtures

Versión 1.0.8 (2,94 MB) por Robby Ching
A model fitting for Activity Coefficients of Binary Mixtures given Vapor-Liquid Equilibrium (VLE) Data
428 descargas
Actualizado 27 jun 2021

Ver licencia

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)."

Citar como

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. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2020a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Thermodynamics and Heat Transfer en Help Center y MATLAB Answers.
Agradecimientos

Inspiración para: NRTL(Non Random two liquids) Activity Coefficient

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
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