Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

YUVRAJ VITTHAL ARDEKAR

60011188001
MSO
PRACTICAL NO. 2

For a system Methanol (1) / Methyl Acetate (2), the following equations provide a reasonable
correlation for the activity coefficients:

ln γ1 = Ax22 ln γ2 = Ax12 where A = 2.771-0.00523 T

In addition, the following Antoine equations provide Vapour pressures:

ln𝑃1𝑠𝑎𝑡=16.59158−3643.31𝑇−33.424

ln𝑃2𝑠𝑎𝑡=14.25326−2665.54𝑇−53.424

Where T is in Kelvin and the vapour pressure is in KPa. . Boiling Point of Methanol at
101.325 KPa is 64.7 0C and boiling Point of Methyl Acetate at 101.325 KPa is 56.9 0C.

a) At y = 0.5 for Methanol, find the value of x. Take T as 62 0C.

b) Using Modified Raoult’s Law generate VLE data for the system at 58 0C and 101.325
KPa.

SOLUTION: -
CODE FOR PART A
//YUVRAJ V ARDEKAR 6001188001//

//GIVEN :- y1=0.5, T=62C=335K//


T=335
A1=16.59158, A2=14.25326
B1=3643.31, B2=2665.54
C1=-33.424, C2=-53.424
//CALCULATING VAPOUR PRESSURES OF METHANOL AND METHYL ACETATE//
P1sat=exp(A1-(B1/(T+C1)));
P2sat=exp(A2-(B2/(T+C2)));
printf('P1sat P2sat\n')
printf('%.4f %.4f\n',P1sat, P2sat)
y1=0.5;
y2=1-y1;
//ASSUMING THE VALUES OF ACTIVITY COEFFIENTS//
gamma1=1;
gamma2=1;
n=12;
A=2.771-(0.00523*T);
printf('A\n')
printf('%.4f\n',A)
for i=1:n
P=1/((y1/(gamma1*P1sat))+(y2/(gamma2*P2sat)));
x1=((y1*P)/(gamma1*P1sat));
x2=((y2*P)/(gamma2*P2sat));
g1=exp(A*((x2)^2));
g2=exp(A*((x1)^2));
err1=abs(gamma1-g1)
err2=abs(gamma2-g2)
gamma1=g1
gamma2=g2
printf(' g1 err1\n')
printf('%.4f %.4f\n',g1, err1)
printf(' g2 err2\n')
printf('%.4f %.4f\n',g2, err2)
if abs(gamma1)<0.0001 then
break
end
if abs(gamma2)<0.0001 then
break
end
end
printf(' x1 x2 P gamma1 gamma2\n')
printf('%.4f %.4f %.4f %.4f %.4f\n',x1, x2, P, g1, g2)

mprintf('mole fraction of methanol in liquid phase is=%.4f\n',x1);


mprintf('mole fraction of methyl acetate in liquid state is=%.4f',x2)

OUTPUT: -
-> exec('C:\Users\91970\Desktop\scilab\tut2part1.sce', -1)
P1sat P2sat
90.9835 119.9119

A
1.0189
g1 err1
1.2088 0.2088
g2 err2
1.3902 0.3902
g1 err1
1.1747 0.0341
g2 err2
1.4475 0.0574

g1 err1
1.1595 0.0152
g2 err2
1.4774 0.0299
g1 err1
1.1525 0.0070
g2 err2
1.4923 0.0148
g1 err1
1.1492 0.0033
g2 err2
1.4994 0.0072
g1 err1
1.1477 0.0015
g2 err2
1.5029 0.0034
g1 err1
1.1470 0.0007
g2 err2
1.5045 0.0016
g1 err1
1.1467 0.0003
g2 err2
1.5053 0.0008
g1 err1
1.1465 0.0002
g2 err2
1.5056 0.0004
g1 err1

1.1464 0.0001
g2 err2
1.5058 0.0002
g1 err1
1.1464 0.0000
g2 err2
1.5059 0.0001
g1 err1
1.1464 0.0000
g2 err2
1.5059 0.0000
x1 x2 P gamma1 gamma2
0.6339 0.3661 132.2269 1.1464 1.5059
mole fraction of methanol in liquid phase is=0.6339
mole fraction of methyl acetate in liquid state is=0.3661

PART B OF THE QUESTION: -


//YUVRAJ V ARDEKAR 60011188001//
//CASE1:- FOR 58degree celsius//
T=331.15
A1=16.59158, A2=14.25326
B1=3643.31, B2=2665.54
C1=-33.424, C2=-53.424
A=2.771-(0.00523*T)
P1sat=exp(A1-(B1/(T+C1)));
P2sat=exp(A2-(B2/(T+C2)));
printf('P1sat P2sat\n')
printf('%.4f %.4f\n',P1sat, P2sat)
x=0:0.1:1
n=length(x)
printf('\n P x1 y1\n')
for i=1:n
g1(i)=exp(A*((1-x(i))^2));
g2(i)=exp(A*((x(i))^2));
P(i)=((x(i)*g1(i)*P1sat)+((1-x(i))*(g2(i))*P2sat))
y(i)=((x(i)*P1sat*(g1(i)))/P(i))
printf('%f %f %f\n',P(i),x(i),y(i))
end
plot(x,P,'B')
plot(y,P,'R')
xtitle('$P-X-Y\;DIAGRAM$','x,y','P,kPa',boxed=%t);
xgrid

OUTPUT
--> exec('C:\Users\91970\Desktop\scilab\tut2part2 T=58C.sce', -1)
P1sat P2sat
77.8245 105.1646

P x1 y1
105.164625 0.000000 0.000000
113.693705 0.100000 0.158821
117.968423 0.200000 0.256562
119.678904 0.300000 0.324595
119.763124 0.400000 0.377842
118.634907 0.500000 0.425296
116.289077 0.600000 0.474167
112.311903 0.700000 0.532602
105.800754 0.800000 0.613434
95.174055 0.900000 0.743623
77.824472 1.000000 1.000000
CODE
//YUVRAJ V ARDEKAR 60011188001//
//CASE 2:- P=101.325 kPa//
P=101.325;
B = [16.5915 3643.31 -33.424;14.2532 2665.54 -53.424];
y1=0:0.1:1;
a=length(y1);
y2=1-y1;
for i=1:2
Tb(i)=B(i,2)/(B(i,1)-log(P))-B(i,3);
end
printf(' y1 x1 T\n');
for s=1:a
T(s)=y1(s)*Tb(1)+y2(s)*Tb(2);
g1(s)=1;
g2(s)=1;
err3(s)=1;
while(err3(s)>0.0001)
err1(s)=1;
err2(s)=1;
while(err1(s)>0.0001 & (err2(s)>0.0001))
for i=1:2
Psat(i)=exp(B(i,1)-B(i,2)/(T(s)+B(i,3)));
end
x1(s)=y1(s)*P/(g1(s)*Psat(1));
x2(s)=y2(s)*P/(g2(s)*Psat(2));
A(s)=2.771-0.00523*(T(s)+0.005);
g1new(s)=exp(A(s)*x2(s)^2);
g2new(s)=exp(A(s)*x1(s)^2);
err1(s)=abs(g1(s)-g1new(s));
err2(s)=abs(g2(s)-g2new(s));
g1(s)=g1new(s);
g2(s)=g2new(s);
end
err3(s)=abs(x1(s)+x2(s)-1);
T(s)=T(s)-0.001;
end
printf('%f %f %f\n',y1(s),x1(s),T(s));
end
plot(x1,T,'B');
plot(y1,T,'R');
xtitle('$T-X-Y\;DIAGRAM$','x,y','T,kelvin',boxed=%t);
xgrid;

OUTPUT
-> exec('C:\Users\91970\Desktop\scilab\tut2 part2 P=101.325.sce', -1)
y1 x1 T
0.000000 0.000000 330.078614
0.100000 0.056655 328.641012
0.200000 0.138821 327.405409
0.300000 0.266480 326.615806
0.400000 0.460161 326.700204
0.500000 0.658646 327.909601
0.600000 0.789232 329.777998
0.700000 0.871271 331.830396
0.800000 0.927160 333.874793
0.900000 0.968186 335.842191
1.000000 1.000000 337.712588

You might also like