Be the first to rate this file! 21 Downloads (last 30 days) File Size: 8.18 KB File ID: #27850

Mixture property calculations using PR, RK and SRK EoS.

by Antonio

 

08 Jun 2010 (Updated 02 Mar 2011)

The file prsrk.m calculates major thermodynamic properties using any of PR, RK or SRK EoS.

| Watch this File

File Information
Description

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.

Required Products Optimization Toolbox
MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
01 Mar 2011 Lee Shunn

In "prsrk.m" the units on reference pressure (Pref) should be Pascals, not bar to be consistent with other inputs and your gas constant.

Please login to add a comment or rating.
Updates
02 Mar 2011

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

Tag Activity for this File
Tag Applied By Date/Time
thermodynamic calculations Antonio 08 Jun 2010 09:36:18
eos Antonio 08 Jun 2010 09:36:19
distillation Antonio 08 Jun 2010 09:36:19
eos Alberto Ripamonti 13 May 2011 04:27:04

Contact us at files@mathworks.com