No BSD License  

Highlights from
Peng-Robinson EoS

4.05263

4.1 | 19 ratings Rate this file 37 Downloads (last 30 days) File Size: 1.99 KB File ID: #4519

Peng-Robinson EoS

by Juan Garcia Serna

 

23 Feb 2004 (Updated 25 Feb 2004)

Calculates the compressibility factor, fugacity coefficient and density of a pure component.

| Watch this File

File Information
Description

This function allows calculating the compressibility factor, the fugacity coefficient and density of a pure compound for both liquid and vapour phases by means of the Peng-Robinson equation of state (PR EOS). Temperature, pressure, molar weigth, and supercritical properties of the selected compound are needed to be specified as parameters.

It is a Beta version, full version will include multicomponent systems and other equations of state.

 function [Z,fhi,density] = PengRobinson(T,P,Tc,Pc,w,MW,Liquido)
 Parameters: T,P,w,Tc,Pc,w,MW,Liquido
 T: Temperature [=]K
 P: Presure [=] Pa
 Tc: critical temperature [=] K
 Pc: critical presure [=] Pa
 w: accentic factor
 MW: molar weigth [=] kg /mol
 Liquido: if Liquido = 1, liquid fugacity;
           if Liquido = 0 vapor fugacity
 Example:
 [Z fhi density] = PengRobinson(273,2*1.013*1e5,304.21,7.382*1e6,0.225,0.044,1)

This MATLAB function provides an educational tool to predict fluid phase equilibrium and can be easily extended to a multicomponent system.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (22)
26 Mar 2004 Farshid Farzaneh

That's great

01 May 2004 reza laee

full programm

07 May 2004 Miguel Angel Viascan Chavez  
05 Jul 2004 Ivo Kordic

Bastante bueno

08 Dec 2004 Tulio Quijada

Hola Juan, Mi nombre es Tulio soy Ing Quimico, estoy desarrollando un modulo parecido al tuyo pero con la diferencia que estoy trabajando con compuestos no definidos Pseudo-compuestos(diesel) me gustaria conocer tu programa pero no he podido descargarlo, tambien me gustaria intercambiar ideas contigo.

23 Feb 2005 Herald Arkenbosch

Juan, Thanks for the file you shared. I had difficulties getting back ground information on the equation of state; this helps me a lot.

07 Jul 2005 ibe ugo herbie  
22 Sep 2005 Simon Jönsson

Excellent easy-to-follow program for educational purpose!

20 Mar 2006 dharma r maddala  
07 Apr 2006 Miguel D. B.

Hola Juan, quisiera hacer unas recomendaciones para mejorar el programa:
1. En lugar de usar "roots" sería conveniente utilizar el algoritmo de Ulrich.
2. Utilizar propiedades reducidas para no limitarse un sistema de unidades.
3. También sería bueno utilizar la EOS Peng-Robinson-Strajik-Vera para mejorar los resultados.

17 Apr 2006 rasoul anwar  
02 Oct 2006 hamed heidarzadeh

compressibility factor

05 Nov 2006 Kamran Moradi

Can solve my article problem , nut not fully.

29 Dec 2006 mehdi escrochi  
18 Apr 2007 julio gomez  
12 May 2007 Cc Cc

thank you my friend

10 Aug 2007 Patrick Egan

Functional and very useful.

17 Sep 2007 mostafa mafi

DEar My Friend
If it is possible please send me the multicomponent systems version

15 Nov 2007 Nand Khatri

Dear Friend..
Is it possible to give some idea for Binary mixture using general two parameter EOS.
Thanx

04 Dec 2007 muhammad rizal  
10 Jun 2008 lior kaufman  
30 Sep 2009 Enjou G

extremely helpful!
how can i use it to determine liquid and vapor molar densities cm^3/mol) and mass densityof water at given T,P?

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulation Juan Garcia Serna 22 Oct 2008 07:14:54
thermodynamic model Juan Garcia Serna 22 Oct 2008 07:14:54
peng robinson Juan Garcia Serna 22 Oct 2008 07:14:54
equation of state Juan Garcia Serna 22 Oct 2008 07:14:54
vaporliquid eq Juan Garcia Serna 22 Oct 2008 07:14:54
cubic eos Enjou G 30 Sep 2009 14:27:52
liquid and vapor sys Enjou G 30 Sep 2009 14:30:35
peng robinson Jorge 22 Oct 2011 16:29:07

Contact us at files@mathworks.com