Mixture property calculations using PR, RK and SRK EoS.

Version 1.2.0.0 (8.14 KB) by Antonio
The file prsrk.m calculates major thermodynamic properties using any of PR, RK or SRK EoS.
3K Downloads
Updated 18 Dec 2013

View License

Included in the zipped file you find the prsrk.m routine to calculate molar volume, compressibility factor, fugacity coefficient, Helmholtz energy, entropy, enthalpy, internal energy, and Gibbs energy of vapor and liquid mixtures. The other Matlab functions/scripts are part of a steady-state distillation example as depicted in Fig. 15.6 (pp. 568) of Henley, E. J. and Seader, J. D., "Equilibrium-Stage Separation Operations in Chemical Engineering", 1981, John Wiley & Sons. The files include:

1 ) main_dist.m is the main script containing input data and the call to fmincon.
2 ) feed_dist.m performes BP, DP and flash calculations for the feed conditions.
3 ) model_dist.m is the vectorized distillation column model.
4 ) nonlcon_dist.m is the nonlinear function argument of fmincon.
5 ) parameters_dist.m includes all the parameters needed for the simulation such as tehrmodynamic parameters and pressure drop along the stages.

The results of the simulation in Matlab agree perfectly with those found by simulating the same system in Aspen Plus 2006.

Cite As

Antonio (2024). Mixture property calculations using PR, RK and SRK EoS. (https://www.mathworks.com/matlabcentral/fileexchange/27850-mixture-property-calculations-using-pr-rk-and-srk-eos), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

Files updated after fixing wrong data.

1.1.0.0

Thanks to Lee Shunn's comments (March 1, 2011), the reference pressure was fixed to comply with consistency.

1.0.0.0