Peng-robinson Eos

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
[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. Requirements:
· MATLAB Release: R13

Related Scripts

  • Robinson-schensted Correspondence
    Set of files for computing the insertion and recording tableaux from the Robinson-Schensted correspondence. Main file is risk. Syntax, [P,Q]=risk(a) w...
  • Bishop Bayesian Classifier 0.3.0
    Bishop Bayesian Classifier is a port to Ruby of the python based "Reverend" bayesian classifier library.Bishop uses YAML to import/export training sta...
  • Earth Observing System Data Visualization
    MATLAB can read and write a wide variety of scientific and image data files, and create graphical displays of the data they contain. This technical ex...
  • Mrmr Feature Selection
    This package is the mRMR (minimum-redundancy maximum-relevancy) feature selection method in (Peng et al, 2005 and Ding & Peng, 2005, 2003), whose bett...
  • Minimum-redundancy Maximum-relevance Feature
    Two source code files of the mRMR (minimum-redundancy maximum-relevancy) feature selection method in (Peng et al, 2005 and Ding & Peng, 2005, 2003), w...
  • Vle Simulation 0.2
    VLE is a program written in java to simulate the thermodynamic systems containing liquid and vapour. It can determine various system properties like b...
  • Applications Of The Soave-redlich-kwong Equation Of State Using Matlab
    The function uses the SRK EOS written for a single component to plot isotherms, compute gas and liquid molar volumes and then to plot graphs for vapor...
  • Mutual Information Computation
    A self-contained, cross-platform, package for computing mutual information, joint/conditional probability, entropy, and more. This package has also be...
  • S-lang 2.2.4
    S-Lang is a multi-platform programmer's library designed to allow a developer to create robust multi-platform software.It provides facilities required...
DMCA Notice-Privacy Policy
2004 - 2013 DownScripts. All rights reserved.