You are on page 1of 18

PENG-ROBINSON EQUATION OF STATE: Z FACTOR

Purpose
This workbook provides a working example of the z factor, enthalpy and entropy calculations for a multi-component
fluid using the Peng-Robinson Equation of State (EOS). This is the same calculation written into the zfactor Excel
add-in but provided in this format to help users who are less familiar with code to understand the calculation
approach.

Liability
No warrantees are made with respect to the accuracy or applicability of the calculations in this spreadsheet. The
onous is on the user to verify that any results obtained are correct and appropriate for the work being carrying out.

Copyright
This spreadsheet is the intellectual property of the author, Andrew Hooks. You are free to use it and distribute it
however, you may not make it available for download from any website without prior written consent and you must
not remove or obscure any notices regarding authorship.
Contact
Email:
For other tools, visit: www.firstprincipleseng.wordpress.com
r a multi-component
the zfactor Excel
he calculation

spreadsheet. The
being carrying out.

t and distribute it
onsent and you must
PENG-ROBINSON EQUATION OF STATE: Z FACTOR

Stream conditions Constants


Temperature 298 K R 8.31451 kPa.m3/(kmol.K)
Pressure 10000 kPaA
z factor 0.7869 -
Enthalpy -84273 kJ/kgmol
Entropy 143 kJ/(kgmol.K)

Constants and derived properties

Composition Component constants Binary interaction parame


ID MolFrn MolWeight CritTemp CritPres AccFactor Nitrogen
- mol/mol kg/kgmol K kPa - -
0 Nitrogen 0.010 28.013 126.2 3394 0.0400
1 CO2 0.020 44.010 304.1 7370 0.2389 -0.02000
2 Methane 0.900 16.043 190.7 4641 0.0115 0.03600
3 Ethane 0.040 30.070 305.4 4884 0.0986 0.05000
4 Propane 0.020 44.097 369.9 4257 0.1524 0.08000
5 i-Butane 0.010 58.124 408.1 3648 0.1848 0.09500
6 n-Butane 58.124 425.2 3797 0.2010 0.09000
7 i-Pentane 72.151 460.4 3334 0.2222 0.09500
8 n-Pentane 72.151 469.6 3375 0.2539 0.10000
1 OK

Mixture parameters
am 0.234
bm 2.8164E-05
A 0.381
B 0.114

z factor

Solve cubic z³ -(1-B).z² + (A.B - B² - B³).z - (A.B - B² - B³) = 0


z 0.7869 -
z(add-in) 0.7869

Ethalpy
Ethalpy and entropy are state properties which means that their value at a given T, P is independent of the path taken
We define a reference enthalpy at a given P, T then calculate the change in enthalpy to the requested P, T in two step
Different literature/software uses different reference values which isn't really important since we are normally intere
HYSYS and UNISIM use the Heat of formation at 25°C as the reference enthalpy and this is also adopted here to make

Reference enthalpy Arbitary reference value (since practical calculations are int
Reference T 298.15 K
Reference P 101.325 kPaA
H reference -82099 kJ/kgmol H(ref) = SUM[xi.dH(formation)]
dH ideal (T.ref --> T) Change in enthalpy from reference T to requested T (at P=1
dH ideal -6 kJ/kgmol dH (ideal) = SUM[xi.dHideal]

H departure (P=1bara --> P) Change in enthalpy from (T requested, P=1bara) to (T reque


Kappa 0.412 -
Tc 203 K
alpha 0.833 -
H departure -2168 kJ/kgmol Hd = (z - 1 - LN((z + (1 + Sqr(2)) * B) / (z + (1 - Sqr(2)) * B)) * A

"Real" enthalpy
Hreal -84273 kJ/kgmol Enthalpy = Href + dHideal + Hd
Hreal (add-in) -84273 kJ/kgmol

Entropy

S reference 183 kJ/(kgmol.K) S(ref) = SUM[xi.dS(formation)]


dS ideal -0.02 kJ/(kgmol.K) dS (ideal) = SUM[xi.dSideal]
dS mixing 3.93 kJ/(kgmol.K) Enthalpy of mixing is zero for an ideal fluid but entropy of m
S departure -5.24 kJ/(kgmol.K) Sd = GAS_CONST * LN(z - B) - LN((z + (1 + Sqr(2)) * B) / (z + (1
S depart. (ref.) 0.00 kJ/(kgmol.K) Sd(ref) is ignored since it requires recalculation of z at refere
S real 143 kJ/(kgmol.K) Entropy = Sref + dSideal + dSmix - GAS_CONST * LN(Pres / Pr
S real (add-in) 143 kJ/(kgmol.K)

z factor add-in

The zfactor add-in expands on the above calculations - adding Cp-real and Cv-real, Isenthalpic and Isentropic tempera
us to model real world processes (e.g. compression or expansion across a valve or turbo-expander)
These calculations are the same as those carried out above but need to be solved multiple times, or as an iteration, an
* Cp-real = dH/dT as dT approaches 0 requires two enthalpy calculations
* Isenthalpic temperature rise (compression) requies an iteration to find the temperature (at the target pressure) tha
Binary interaction parameters (from Unisim Design) Component derived pro
CO2 Methane Ethane Propane i-Butane n-Butane i-Pentane n-Pentane kappa
- - - - - - - - -
-0.02000 0.03600 0.05000 0.08000 0.09500 0.09000 0.09500 0.10000 0.436
0.10000 0.12980 0.13500 0.12980 0.12980 0.12500 0.12500 0.728
0.10000 0.00224 0.00683 0.01311 0.01230 0.01763 0.01793 0.392
0.12980 0.00224 0.00126 0.00457 0.00410 0.00741 0.00761 0.524
0.13500 0.00683 0.00126 0.00104 0.00082 0.00258 0.00270 0.603
0.12980 0.01311 0.00457 0.00104 0.00001 0.00035 0.00039 0.650
0.12980 0.01230 0.00410 0.00082 0.00001 0.00050 0.00055 0.674
0.12500 0.01763 0.00741 0.00258 0.00035 0.00050 1.23E-06 0.704
0.12500 0.01793 0.00761 0.00270 0.00039 0.00055 1.23E-06 0.749

dependent of the path taken to get there


he requested P, T in two steps - first an ideal step (no change in P), then a departure function to account for non-ideality at high pressu
ince we are normally interested in the change in enthalpy
s also adopted here to make it easy for users to carry out their own validation if desired

practical calculations are interested in change in enthalpy)


nce T to requested T (at P=1 bara therefore "ideal" change in enthalpy)

uested, P=1bara) to (T requested, P=P requested). "Departure function"

B) / (z + (1 - Sqr(2)) * B)) * A / (B * Sqr(8)) * (1 + K * Sqr(Tr) / Sqr(alpha))) * GAS_CONST * Temp

ideal fluid but entropy of mixing is not, dS(mix) = -R*SUM[xi.LN(xi)]


((z + (1 + Sqr(2)) * B) / (z + (1 - Sqr(2)) * B)) * A * GAS_CONST / (B * Sqr(8)) * (K * Sqr(Tr) / Sqr(alpha))
s recalculation of z at reference P,T and is generally very small. It is calculated in the zfactor add-in
- GAS_CONST * LN(Pres / Pref) + Sd - Sd_ref

alpic and Isentropic temperature/pressure change etc. which allow

e times, or as an iteration, and are therefore well suited for code, e.g.

(at the target pressure) that corresponds to dS=0


Component derived properties Ideal gas heat capacities
alpha(T) a(Tc) a b (xi.ai^0.5)*SUM[xj.aj^0.5 * (1-BIP(i,j))] A B
- - - - - - -
0.587 0.148 0.087 2.40E-05 0.0014 27.52968 0.005443
1.015 0.397 0.402 2.67E-05 0.0055 27.20411 0.042644
0.813 0.248 0.201 2.66E-05 0.1954 37.93488 -0.068422
1.013 0.604 0.612 4.05E-05 0.0151 34.36689 -0.019461
1.127 1.016 1.146 5.62E-05 0.0103 17.41832 0.18645
1.198 1.443 1.729 7.24E-05 0.0063 8.910409 0.306289
1.231 1.505 1.854 7.24E-05 0.0000 0.496413 0.380944
1.294 2.010 2.601 8.93E-05 0.0000 -9.509358 0.510973
1.328 2.065 2.742 9.00E-05 0.0000 -0.844289 0.478563

on-ideality at high pressure


Used for Enthalpy/Entropy calculation only

heat capacities dH(ideal) dS(ideal) Reference H, S


C D E kJ/kgmol kJ/(kgmol.K) DHfo DSfo
- - - kJ/kgmol kJ/(kgmol.K)
-3.49E-08 -4.1E-10 5.673E-14 -4 -0.015 0 148.0630121
-1.97E-05 4.032E-09 -3.02E-13 -6 -0.019 -393790 172.3872781
0.000272 -2.39E-07 6.906E-11 -5 -0.018 -74900 183.4758331
0.000383 -4.08E-07 1.326E-10 -8 -0.027 -84738 195.2191449
5.245E-05 -1.18E-07 3.703E-11 -11 -0.038 -103890 161.6547211
1.268E-05 -1.69E-07 6.88E-11 -15 -0.049 -134590 160.6502223
-0.000193 4.107E-08 -1.86E-12 -15 -0.049 -126190 127.4955457
-0.000289 7.257E-08 -4.67E-12 -18 -0.060 -154590 36.94070416
-0.000253 5.762E-08 -3.13E-12 -18 -0.061 -146490 75.0095913
PENG-ROBINSON EQUATION OF STATE: Z FACTOR CHART

Table created using the 'Scenario Tool' Add-in - available from https://firstprincipleseng.wordpress.com/cate
Re-run scenarios to update results for a change in composition
Pressure Temperature z
kPaA K - 1.2
INP: $zFactor.$C$5 INP: $zFactor.$C$4 OUT: $zFactor.$C$6

1.0
100 248.15 0.995
200 0.991
300 0.986
400 0.981 0.8
500 0.977
600 0.972

z factor [-]
700 0.967 0.6
800 0.962
900 0.958
1000 0.953 0.4
2000 0.905
3000 0.857
4000 0.808 0.2
5000 0.760
6000 0.712
7000 0.667 0.0
8000 0.627 0 5000 10000 15
9000 0.594
10000 0.570
11000 0.556
12000 0.551
13000 0.551
14000 0.556
15000 0.564
16000 0.574
17000 0.585
18000 0.598
19000 0.612
20000 0.627
21000 0.642
22000 0.657
23000 0.673
24000 0.689
25000 0.705
26000 0.721
27000 0.737
28000 0.753
29000 0.770
30000 0.786
31000 0.803
32000 0.819
33000 0.836
34000 0.852
35000 0.869
36000 0.886
37000 0.902
38000 0.919
39000 0.935
40000 0.952
100 273.15 0.996
200 0.993
300 0.989
400 0.986
500 0.982
600 0.979
700 0.975
800 0.972
900 0.969
1000 0.965
2000 0.930
3000 0.896
4000 0.863
5000 0.831
6000 0.800
7000 0.771
8000 0.745
9000 0.722
10000 0.703
11000 0.688
12000 0.677
13000 0.669
14000 0.666
15000 0.665
16000 0.667
17000 0.671
18000 0.677
19000 0.685
20000 0.694
21000 0.703
22000 0.714
23000 0.725
24000 0.737
25000 0.749
26000 0.762
27000 0.775
28000 0.788
29000 0.801
30000 0.815
31000 0.828
32000 0.842
33000 0.856
34000 0.870
35000 0.884
36000 0.898
37000 0.913
38000 0.927
39000 0.941
40000 0.955
100 298.15 0.997
200 0.995
300 0.992
400 0.989
500 0.987
600 0.984
700 0.981
800 0.979
900 0.976
1000 0.974
2000 0.948
3000 0.923
4000 0.899
5000 0.876
6000 0.855
7000 0.835
8000 0.817
9000 0.801
10000 0.787
11000 0.776
12000 0.766
13000 0.759
14000 0.754
15000 0.751
16000 0.750
17000 0.751
18000 0.754
19000 0.757
20000 0.762
21000 0.768
22000 0.775
23000 0.782
24000 0.791
25000 0.800
26000 0.809
27000 0.819
28000 0.829
29000 0.840
30000 0.850
31000 0.862
32000 0.873
33000 0.884
34000 0.896
35000 0.908
36000 0.920
37000 0.932
38000 0.944
39000 0.956
40000 0.969
100 323.15 0.998
200 0.996
300 0.994
400 0.992
500 0.990
600 0.988
700 0.986
800 0.984
900 0.982
1000 0.980
2000 0.961
3000 0.942
4000 0.924
5000 0.908
6000 0.893
7000 0.878
8000 0.866
9000 0.854
10000 0.844
11000 0.836
12000 0.829
13000 0.823
14000 0.819
15000 0.816
16000 0.815
17000 0.815
18000 0.816
19000 0.818
20000 0.821
21000 0.825
22000 0.830
23000 0.835
24000 0.841
25000 0.848
26000 0.855
27000 0.862
28000 0.870
29000 0.879
30000 0.888
31000 0.897
32000 0.906
33000 0.915
34000 0.925
35000 0.935
36000 0.945
37000 0.955
38000 0.966
39000 0.976
40000 0.987
seng.wordpress.com/category/excel/

T=-
25'C
T=0'C
T=25'C
T=50'C

5000 10000 15000 20000 25000 30000 35000 40000 45000


Pressure [kPa(A)]

You might also like