Вы находитесь на странице: 1из 13

FACULTAD DE INGENIERÍA

QUÍMICA

CÁTEDRA:

TERMODINÁMICA DE LOS PROCESOS


QUÍMICOS II

CATEDRATICO:

Ing. SALVADOR ORE VIDALON

ALUMNO:

VARA MARCELO, Harry

FECHA DE PRESENTACION: 05 - 05 – 2019

VI SEMESTRE

HUANCAYO – PERÚ
I. PROCESOS ISOBÁRICOS
MEZCLA BINARIA DE ACETONA – CLOROFORMO
1.1. ECUACIÓN DE MARGULES:

function ProcesoIsobarico_Margules_
clc,clear all,clf
%EQUILIBRIO DE VAPOR-LIQUIDO PARA COMPUESTOS BINARIOS EN ESTE CASO
%acetona cloroformo A PRESION CONSTANTE
%ELABORADO POR EL ESTUDIANTE: VARA MARCELO HARRY ARILSON IQ
%%%ingresando los datos calculados%%%%
%ACETONA
A1=7.02447;B1=1161.0;C1=224.0;
%CLOROFORMO
A2=6.90328;B2=1163.03;C2=227.4;
%parametros de Margules
A12=-0.3051;
A21=-0.2676;
%Declaracón de los datos de entrada:compocisiones de la fase líquida
syms T
x1=0:0.1:1;
P=760;%atm
%Determinación de las presiones de vapor
Pvp1=10^(A1-B1/(C1+T));Tb1=(B1/(A1-log10(P)))-C1;
Pvp2=10^(A2-B2/(C2+T));Tb2=(B2/(A2-log10(P)))-C2;
%Determinación de los coeficientes de actividad en la fase líquida
for i=1:length(x1)
x2(i)=1-x1(i);
coef1(i)=10^(x2(i)^2*(A12+2*x1(i)*(A21-A12)));
coef2(i)=10^(x1(i)^2*(A21+2*x2(i)*(A12-A21)));
y1(i)=(x1(i)*coef1(i)*Pvp1)/P;
y2(i)=(x2(i)*coef2(i)*Pvp2)/P;
end
%Determinación de las temperaturas de equilibrio
disp('================================================================
===================')
disp(' x1 x2 y1 y2 T,°C coef1
coef2 y1+y2=1')
disp('================================================================
===================')
f=y1+y2-1;
df=diff(f,T,1);
for i=1:length(x1)
To=(Tb1+ Tb2)/2;
e=10^-4;d=1;
while d>e
T=To;
fxi=f(i);
fdxi=df(i);
Tn=To-eval(fxi)/eval(fdxi);
d=eval(abs(subs(f(i),Tn)));
To=Tn;
end
Tm(i)=To;
Y1(i)=eval(subs(y1(i),Tm(i)));
Y2(i)=eval(subs(y2(i),Tm(i)));
y=Y1+Y2;
end
for i=1:length(x1)
fprintf('%6.2f %10.2f %10.4f %10.4f %10.4f %10.4f %10.4f
%10.4f\n',x1(i),x2(i),Y1(i),Y2(i),Tm(i),coef1(i),coef2(i),y(i))
end

disp('================================================================
====================')
%datos experimentales
xexp=[0.09800 0.18600 0.26600 0.36000 0.46800 0.57800 0.67300 0.75500
0.82700 0.89200 0.94900];
yexp=[0.06000 0.14300 0.23000 0.36000 0.51400 0.64600 0.75100 0.83000
0.89000 0.93900 0.97500];
Texp=[335.75 336.65 337.25 337.55 336.95 335.85 334.65 333.45 332.15
331.05 330.15];
texp=Texp-273.15;
%Gráfica de resultados predecidos por Margules
subplot(1,2,1), plot(x1,x1,'*-black',x1,Y1,'k',xexp,yexp,'square'),
grid on, legend('Raoult','Experimental');
title('Diagrama del sistema (acetona)(1)-cloroformo(2) a 1
atm'),xlabel('X1'), ylabel('Y1')
subplot(1,2,2), plot(x1,Tm,'r*-',Y1,Tm,'m*-
',xexp,texp,'ksquare',yexp,texp,'go'),grid on, legend('Raoult
1','Raoult 2','Experimental 1','Experimental 2')
title('Diagrama de fases (acetona)(1)-cloroformo(2) a 1
atm'),xlabel('X1,Y1'),ylabel('T,°C')

GRÁFICAS
1.1. ECUACIÓN DE VAN LAAR:

function ProcesoIsobarico_VANLAAR
clc,clear,clf
%EQUILIBRIO DE VAPOR-LIQUIDO PARA COMPUESTOS BINARIOS EN ESTE CASO
%Acetona Cloroformo A PRESION CONSTANTE
%ELABORADO POR EL ESTUDIANTE:VARA MARCELO HARRY ARILSON IQ
%%%ingresando los datos calculados%%%%
%Acetona
A1=7.02447;B1=1161.0;C1=224.0;
%Cloroformo
A2=6.90328;B2=1163.03;C2=227.4;
%parametros de Van Laar
A12=-0.3045;
A21=-0.2709;
%Declaracón de los datos de entrada:compocisiones de la fase líquida
syms T
x1=0:0.1:1;
P=760;%mmHg
%Determinación de las presiones de vapor
Pvp1=10^(A1-B1/(C1+T));Tb1=(B1/(A1-log10(P)))-C1;
Pvp2=10^(A2-B2/(C2+T));Tb2=(B2/(A2-log10(P)))-C2;
%Determinación de los coeficientes de actividad en la fase líquida
for i=1:length(x1)
x2(i)=1-x1(i);
coef1(i)=10^((A12/((1+((x1(i)*A12)/(x2(i)*A21)))^2)));
coef2(i)=10^((A21/((1+((x2(i)*A21)/(x1(i)*A12)))^2)));
y1(i)=(x1(i)*coef1(i)*Pvp1)/P;
y2(i)=(x2(i)*coef2(i)*Pvp2)/P;
end
%Determinación de las temperaturas de equilibrio
disp('================================================================
===================')
disp(' x1 x2 y1 y2 T,°C coef1
coef2 y1+y2=1')
disp('================================================================
===================')
f=y1+y2-1;
df=diff(f,T,1);
for i=1:length(x1)
To=(Tb1+ Tb2)/2;
e=10^-4;d=1;
while d>e
T=To;
fxi=f(i);
fdxi=df(i);
Tn=To-eval(fxi)/eval(fdxi);
d=eval(abs(subs(f(i),Tn)));
To=Tn;
end
Tm(i)=To;
Y1(i)=eval(subs(y1(i),Tm(i)));
Y2(i)=eval(subs(y2(i),Tm(i)));
y=Y1+Y2;
end
for i=1:length(x1)
fprintf('%6.2f %10.2f %10.4f %10.4f %10.4f %10.4f %10.4f
%10.4f\n',x1(i),x2(i),Y1(i),Y2(i),Tm(i),coef1(i),coef2(i),y(i))
end
disp('================================================================
====================')
%datos experimentales
xexp=[0.09800 0.18600 0.26600 0.36000 0.46800 0.57800 0.67300 0.75500
0.82700 0.89200 0.94900];
yexp=[0.06000 0.14300 0.23000 0.36000 0.51400 0.64600 0.75100 0.83000
0.89000 0.93900 0.97500];
Texp=[335.75 336.65 337.25 337.55 336.95 335.85 334.65 333.45 332.15
331.05 330.15];
texp=Texp-273.15;
%Gráfica de resultados predecidos por Van Laar
subplot(1,2,1), plot(x1,x1,'*-black',x1,Y1,'k',xexp,yexp,'square'),
grid on, legend('Raoult','Experimental');
title('Diagrama del sistema (acetona)(1)-cloroformo(2) a 1
atm'),xlabel('X1'), ylabel('Y1')
subplot(1,2,2), plot(x1,Tm,'r*-',Y1,Tm,'m*-
',xexp,texp,'ksquare',yexp,texp,'go'),grid on, legend('Raoult
1','Raoult 2','Experimental 1','Experimental 2')
title('Diagrama de fases (acetona)(1)-cloroformo(2) a 1
atm'),xlabel('X1,Y1'),ylabel('T,°C')
GRÁFICAS:
1.2. ECUACIÓN DE WILSON:

function ProcesoIsobarico_Wilson
clc,clear,clf
%EQUILIBRIO DE VAPOR-LIQUIDO PARA COMPUESTOS BINARIOS EN ESTE CASO
%Acetona 2-Propanol A PRESION CONSTANTE
%ELABORADO POR EL ESTUDIANTE: VARA MARCELO HARRY ARILSON IQ
%%%ingresando los datos calculados%%%%
%Acetona
A1=7.02447;B1=1161.0;C1=224.0;
%Cloroformo
A2=6.90328;B2=1163.03;C2=227.4;
%parametros de Wilson
A1211=-72.20;
A2122=-332.23;
VJL=78.218;
VIL=67.380;
R=1.987207;
%Declaracón de los datos de entrada:compocisiones de la fase líquida
syms T
x1=0:0.1:1;
P=760;%mmHg
%Determinación de las presiones de vapor
Pvp1=10^(A1-(B1/(C1+T)));Tb1=((B1/(A1-log10(P)))-C1);
Pvp2=10^(A2-(B2/(C2+T)));Tb2=((B2/(A2-log10(P)))-C2);
V12=(VJL/VIL)*exp(-((A1211)/(R*T+273.15)));
V21=(VIL/VJL)*exp(-((A2122)/(R*T+273.15)));
%Determinación de los coeficientes de actividad en la fase líquida
for i=1:length(x1)
x2(i)=1-x1(i);
coef1(i)=exp(-log(x1(i)+V12*x2(i))+x2(i)*(V12/(x1(i)+V12*x2(i))-
V21/(V21*x1(i)+x2(i))));
coef2(i)=exp(-log(x2(i)+V21*x1(i))-x1(i)*(V12/(x1(i)+V12*x2(i))-
V21/(V21*x1(i)+x2(i))));
y1(i)=(x1(i)*coef1(i)*Pvp1)/P;
y2(i)=(x2(i)*coef2(i)*Pvp2)/P;
end
%Determinación de las temperaturas de equilibrio
disp('================================================================
===================')
disp(' x1 x2 y1 y2 T,°C coef1
coef2 y1+y2=1')
disp('================================================================
===================')
f=y1+y2-1;
df=diff(f,T,1);
for i=1:length(x1)
To=(Tb1+ Tb2)/2;
e=10^-4;d=1;
while d>e
T=To;
fxi=f(i);
fdxi=df(i);
Tn=To-eval(fxi)/eval(fdxi);
d=eval(abs(subs(f(i),Tn)));
To=Tn;
end
Tm(i)=To;
Y1(i)=eval(subs(y1(i),Tm(i)));
Y2(i)=eval(subs(y2(i),Tm(i)));
coef11(i)=eval(subs(coef1(i),Tm(i)));
coef22(i)=eval(subs(coef2(i),Tm(i)));
y=Y1+Y2;
end
for i=1:length(x1)
fprintf('%6.2f %10.2f %10.4f %10.4f %10.4f %10.4f %10.4f
%10.4f\n',x1(i),x2(i),Y1(i),Y2(i),Tm(i),coef11(i),coef22(i),y(i))
end

disp('================================================================
====================')
%datos experimentales
xexp=[0.09800 0.18600 0.26600 0.36000 0.46800 0.57800 0.67300 0.75500
0.82700 0.89200 0.94900];
yexp=[0.06000 0.14300 0.23000 0.36000 0.51400 0.64600 0.75100 0.83000
0.89000 0.93900 0.97500];
Texp=[335.75 336.65 337.25 337.55 336.95 335.85 334.65 333.45 332.15
331.05 330.15];
texp=Texp-273.15;
%Gráfica de resultados predecidos por Margules
subplot(1,2,1), plot(x1,x1,'*-black',x1,Y1,'k',xexp,yexp,'square'),
grid on, legend('Raoult','Experimental');
title('Diagrama del sistema (acetona)(1)-cloroformo(2) a 1
atm'),xlabel('X1'), ylabel('Y1')
subplot(1,2,2), plot(x1,Tm,'r*-',Y1,Tm,'m*-
',xexp,texp,'ksquare',yexp,texp,'go'),grid on, legend('Raoult
1','Raoult 2','Experimental 1','Experimental 2')
title('Diagrama de fases (acetona)(1)-cloroformo(2) a 1
atm'),xlabel('X1,Y1'),ylabel('T,°C')
GRÁFICAS:
II. PROCESOS ISOTÉRMICOS
MEZCLA BINARIA DE 1- PROPANOL - BENCENO
2.1. ECUACIÓN DE MARGULES:

function ProcesoIsotermico_MARGULES
clc,clear,clf
%EQUILIBRIO DE VAPOR-LIQUIDO PARA COMPUESTOS BINARIOS EN ESTE CASO
%1-propanol benceno A TEMPERATURA CONSTANTE
%ELABORADO POR EL ESTUDIANTE: VARA MARCELO HARRY ARILSON IQ
%%%ingresando los datos calculados%%%%
%1-propanol
A1=7.99733;B1=1569.70;C1=209.5;
%benceno
A2=6.90565;B2=1211.033;C2=220.790;
%parametros de Margules
A12=0.7332;A21=0.3251;
%Declaracón de los datos de entrada:compocisiones de la fase líquida
x1=0:0.04:1;T=75;%°C
%Determinación de las presiones de vapor
Pvp1=10^(A1-B1/(C1+T));
Pvp2=10^(A2-B2/(C2+T));
disp('============================================================')
disp(' x1 y1 P,mmHg gama1 gga,a2 y1+y2')
disp('============================================================')
for i=1:length(x1)
x2(i)=1-x1(i);
gama1(i)=10^(x2(i)^2*(A12+2*x1(i)*(A21-A12)));
gama2(i)=10^(x1(i)^2*(A21+2*x2(i)*(A12-A21)));
P(i)=x1(i)*gama1(i)*Pvp1+x2(i)*Pvp2*gama2(i);
y1(i)=(x1(i)*gama1(i)*Pvp1)/P(i);
y2(i)=(x2(i)*gama2(i)*Pvp2)/P(i);
sumy(i)=y1(i)+y2(i);
PP=P(i);
disp([x1(i) y1(i) P(i) gama1(i) gama2(i)
sumy(i)])
end
disp('=============================================================')
xe=[0.0376 0.0920 0.0984 0.2048 0.2344 0.3092 0.4172 0.5390 0.6340
0.7440 0.8395 0.9190 0.9495];
ye=[0.0768 0.1435 0.1490 0.2085 0.2145 0.2420 0.2797 0.3185 0.3494
0.4225 0.5265 0.6868 0.7695];
pe=(760/101.3)*[90.43 93.71 94.15 95.27 94.77 94.43 93.05 88.53 84.59
77.37 67.47 55.04 50.88];
subplot(1,2,1), plot(x1,y1,xe,ye,'o',[0 1],[0 1],'k')
axis([0 1 0 1],'square'), grid on, legend('MARGULES','PUNTOS
EXPERIMENTALES');
title('Diagrama del sistema 1-propanol(1)-Bezene(2) a 75°C')
xlabel('x,fracción molar del 1-propanol(líquido) '),
ylabel('y,fracción molar del 1-propanol (vapor)')
subplot(1,2,2),plot(x1,P,'r',xe,pe,'b^',ye,pe,'ksquare',y1,P,'r'),grid
on, legend('MARGULES','P-x exp.','P-y exp.')
title('Diagrama de fases 1-propanol(1)-Benzene(2) a 75°C')
xlabel('x,y fracción molar del 1-propanol'),ylabel('P,mmHg')
GRÁFICAS
2.2. ECUACIÓN DE VAN LAAR:

function ProcesoIsotermico_VANLAAR
clc,clear,clf
%EQUILIBRIO DE VAPOR-LIQUIDO PARA COMPUESTOS BINARIOS EN ESTE CASO
%1-propanol benceno A TEMPERATURA CONSTANTE
%ELABORADO POR EL ESTUDIANTE: VARA MARCELO HARRY ARILSON IQ
%%%ingresando los datos calculados%%%%
%1-Popanol
A1=7.99733;B1=1569.70;C1=209.5;
%Benceno
A2=6.90565;B2=1211.033;C2=220.790;
%parametros de Van Laar
A12=0.7564;A21=0.4508;
%Declaracón de los datos de entrada:compocisiones de la fase líquida
x1=0:0.04:1;T=75;%°C
%Determinación de las presiones de vapor
Pvp1=10^(A1-B1/(C1+T));
Pvp2=10^(A2-B2/(C2+T));
disp(' MODELO MATEMÁTICO - VAN LAAR')
disp('================================================================
======')
disp(' x1 x2 y1 P,mmHg gama1 gama2
y1+y2')
disp('================================================================
======')
for i=1:length(x1)
x2(i)=1-x1(i);
gama1(i)=10^(A12/(1+(x1(i)/x2(i))*(A12/A21))^2);
gama2(i)=10^(A21/(1+(x2(i)/x1(i))*(A21/A12))^2);
P(i)=x1(i)*gama1(i)*Pvp1+x2(i)*Pvp2*gama2(i);
y1(i)=(x1(i)*gama1(i)*Pvp1)/P(i);
y2(i)=(x2(i)*gama2(i)*Pvp2)/P(i);
sumy(i)=y1(i)+y2(i);
PP=P(i);
disp([x1(i) x2(i) y1(i) P(i) Pvp1 Pvp2
sumy(i)])
end
disp('================================================================
======')
Xexp=[0.0376 0.0920 0.0984 0.2048 0.2344 0.3092 0.4172 0.5390 0.6340
0.7440 0.8395 0.9190 0.9495];
Yexp=[0.0768 0.1435 0.1490 0.2085 0.2145 0.2420 0.2797 0.3185 0.3494
0.4225 0.5265 0.6868 0.7695];
Pexp=(760/101.3)*[90.43 93.71 94.15 95.27 94.77 94.43 93.05 88.53
84.59 77.37 67.47 55.04 50.88];
subplot(1,2,1), plot(x1,y1,Xexp,Yexp,'o',[0 1],[0 1],'k')
axis([0 1 0 1],'square'), grid on, legend('VAN LAAR','PUNTOS
EXPERIMENTALES');
title('Diagrama del sistema 1-propanol(1)-Bezene(2) a 75°C')
xlabel('x,fracción molar del 1-propanol(líquido) '),
ylabel('y,fracción molar del 1-propanol (vapor)')
subplot(1,2,2),plot(x1,P,'r',Xexp,Pexp,'b^',Yexp,Pexp,'ksquare',y1,P,'
r'),grid on, legend('VAN LAAR','P-x exp.','P-y exp.')
title('Diagrama de fases 1-propanol(1)-Benzene(2) a 75°C')
xlabel('x,y fracción molar del 1-propanol'),ylabel('P,mmHg')
GRÁFICAS
2.3. ECUACIÓN DE WILSON:

function ProcesoIsotermico_WILSON
clc,clear,clf
%EQUILIBRIO DE VAPOR-LIQUIDO PARA COMPUESTOS BINARIOS EN ESTE CASO
%1-propanol benceno A TEMPERATURA CONSTANTE
%ELABORADO POR EL ESTUDIANTE:VARA MARCELO HARRY ARILSON IQ
%%%ingresando los datos calculados%%%%
%1-Popanol
A1=7.99733;B1=1569.70;C1=209.5;
%Benceno
A2=6.90565;B2=1211.033;C2=220.790;
%parametros de Wilson
A1211=1222.07;A2122=67.14;
%Declaracón de los datos de entrada:compocisiones de la fase líquida
x1=0:0.004:1;T=75;%°C
%Determinación de las presiones de vapor
Pvp1=10^(A1-B1/(C1+T));
Pvp2=10^(A2-B2/(C2+T));
v1=78.962;v2=92.263;R=1.987;%Cal/mol*K
lambda1=(v2/v1)*exp(-(A1211)/(R*(T+273.15)));
lambda2=(v1/v2)*exp(-(A2122)/(R*(T+273.15)));
disp('============================================================')
disp(' x1 y1 P,mmHg gama1 gama2 y1+y2')
disp('============================================================')
for i=1:length(x1)
x2(i)=1-x1(i);
gama1(i)=exp(-
log(x1(i)+lambda1*x2(i))+x2(i)*(lambda1/(x1(i)+lambda1*x2(i))-
lambda2/(x2(i)+lambda2*x1(i))));
gama2(i)=exp(-log(x2(i)+lambda2*x1(i))-
x1(i)*(lambda1/(x1(i)+lambda1*x2(i))-lambda2/(x2(i)+lambda2*x1(i))));
P(i)=x1(i)*gama1(i)*Pvp1+x2(i)*Pvp2*gama2(i);
y1(i)=single((x1(i)*gama1(i)*Pvp1)/P(i));
y2(i)=single((x2(i)*gama2(i)*Pvp2)/P(i));
sumy(i)=y1(i)+y2(i);
PP=P(i);
disp([x1(i) y1(i) P(i) gama1(i) gama2(i)
sumy(i)])
end
disp('================================================================
=======================')
xe=[0.0376 0.0920 0.0984 0.2048 0.2344 0.3092 0.4172 0.5390 0.6340
0.7440 0.8395 0.9190 0.9495];
ye=[0.0768 0.1435 0.1490 0.2085 0.2145 0.2420 0.2797 0.3185 0.3494
0.4225 0.5265 0.6868 0.7695];
pe=(760/101.3)*[90.43 93.71 94.15 95.27 94.77 94.43 93.05 88.53 84.59
77.37 67.47 55.04 50.88];
subplot(1,2,1), plot(x1,y1,xe,ye,'*',[0 1],[0 1],'k')
axis([0 1 0 1],'square'), grid on, legend('WILSON','PUNTOS
EXPERIMENTALES');
title('Diagrama del sistema 1-propanol(1)-Bezene(2) a 75°C')
xlabel('x,fracción molar del 1-propanol(líquido) ')
ylabel('y,fracción molar del 1-propanol (vapor)')
subplot(1,2,2),plot(x1,P,'r',xe,pe,'b^',ye,pe,'ksquare',y1,P,'r'),grid
on,
legend('WILSON','P-x exp.','P-y exp.')
title('Diagrama de fases 1-propanol(1)-Benzene(2) a 75°C')
xlabel('x,y fracción molar del 1-propanol'),ylabel('P,mmHg')
GRÁFICAS