summaryrefslogtreecommitdiff
path: root/572/CH11/EX11.10/c11_10.sce
blob: 488dd26f787897c10883aeaaf4d63d56916c5fa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//(11.10)  A mixture consisting of 0.18 kmol of methane (CH4) and 0.274 kmol of butane (C4H10) occupies a volume of 0.241 m3 at a temperature of 238C. The experimental value for the pressure is 68.9 bar. Calculate the pressure, in bar, exerted by the mixture by using (a) the ideal gas equation of state, (b) Kay’s rule together with the generalized compressibility chart, (c) the van der Waals equation, and (d) the rule of additive pressures employing the generalized compressibility chart. Compare the calculated values with the known experimental value.

//solution

//analysis
V = .241                                                                        //volume of the mixture in m^3
T = 511                                                                         //temperature of the mixture in kelvin
n1 = .18                                                                        //number of moles of methane in kmol
n2 = .274                                                                       //number of moles of butane in kmol
n = n1 + n2                                                                     //The total number of moles of mixture
y1 = n1/n                                                                       //mole fraction of methane
y2 = n2/n                                                                       //mole fraction of butane
Rbar = 8314                                                                     //universal gas constant in (N.m)/(kmol.K)
vbar = V/(n)                                                                    //The specific volume of the mixture on a molar basis in m^3/kmol

//part(a)
p = (Rbar*T/vbar)*10^-5                                                         //in bar
printf('the pressure in bar obtained using ideal gas equation is:  %f',p)

//part(b)
//from table A-1
Tc1 = 191                                                                        //critical temperature for methane in kelvin 
Pc1 = 46.4                                                                      //critical pressure for methane in bar
Tc2 = 425                                                                       //critical temperature for butane in kelvin
Pc2 = 38                                                                        //critical pressure for butane in bar

Tc = y1*Tc1 + y2*Tc2                                                            //critical temperature in kelvin
Pc = y1*Pc1 + y2*Pc2                                                            //critical pressure in bar

TR = T/Tc                                                                       //reduced temperature of the mixture
vRdash= vbar*Pc/(Rbar*Tc)

Z = .88
p = ((Z*Rbar*T)/vbar)*10^-5                                                     //mixture pressure in bar
printf('\npressure obtained using Kay’s rule together with the generalized compressibility chart, is:  %f',p)

//part(c)
//Table A-24 gives the following van der Waals constants values for methane
a1 = 2.293                                                                      //in (m^3/kmol)^2
b1 = .0428                                                                      //in m^3/kmol
//Table A-24 gives the following van der Waals constants values for butane
a2 = 13.86                                                                      //in (m^3/kmol)^2
b2 = .1162                                                                      //in m^3/kmol

a = (y1*a1^.5 + y2*a2^.5)^2                                                     //in bar*(m^3/kmol)^2
b = y1*b1+y2*b2                                                                 //in m^3/kmol
//from van der Waals equation
p = ((Rbar*T)/(vbar-b))*10^-5 - a/(vbar^2)
printf('\nthe pressure in bar from van der Waals equation is:  %f ',p)

//part(d)
//for methane
TR1 = T/Tc1
vR1dash = (.241/.18)*10^5*Pc1/(Rbar*Tc1)
Z1 = 1
//for butane
TR2 = T/Tc2
vR2dash = (.88*10^5*Pc2)/(Rbar*Tc2)
Z2 = .8
Z = y1*Z1 + y2*Z2
//Accordingly, the same value for pressure as determined in part (b) using Kay’s rule results:
p = 70.4
printf('\nthe pressure in bar obtained using the rule of additive pressures employing the generalized compressibility chart is:  %f',p)