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

% PROYECTO BALANCE DE MATERIA - PROCESO DE PRODUCCION DE ETANOL

% Integrantes:
%
Camilo Blanco Mercado
%
Carlos Martinez Arroyo
%
Maria Cecilia Romero
% Suministro De Datos Al Proceso
clear all, clc
P=input('Introduzca la presion de trabajo (Atm)=');
rweth=input('Introduzca la relacion vapor de agua - Etileno=');
rpr=input('Introduzca la relacion de la corriente de purga con referencia
a la corriente de reciclo=');
Keq=0.01306;
f12r=41.802; % Flujo de destilado 95% etanol real de producto en kmol/h
% compuestos:
Etanol

w= vapor de agua

eth= Etileno

% Flujos Nulos en el proceso


f1wr=0;
f1etohr=0;
f2ethr=0;
f2etr=0;
f2etohr=0;
f8etohr=0;
f8wr=0;
f9ethr=0;
f9etr=0;
f10etohr=0;
f10wr=0;
f11etohr=0;
f11wr=0;
f12ethr=0;
f12etr=0;
f13ethr=0;
f13etr=0;
% Flujos Establecidos (Flujos supuestos del proceso)
f1est=100;
f1ethest=0.99*f1est;
f1etest=0.01*f1est;
% Flujos Asumidos (Para el criterio de convergencia)
f14ethasu=25;
f14etasu=0.3;
f14asu=f14ethasu+f14etasu;
% Balances
% Pto Mezcla 1
f3=f1est+f14asu;

et= Etano

etoh=

f3eth=f1ethest+f14ethasu;
f3et=f1etest+f14etasu;
% Pto Mezcla 2
f2w=f1ethest*rweth;
f2=f2w;
f4=f2+f3;
f4eth=f3eth;
f4et=f3et;
f4w=f2w;
% Reactor - R-201
f=@(av)(P^-1)*(((av)/(f4-av))/(((f4eth-av)/(f4-av))*((f4w-av)/(f4-av))))Keq;
E=fzero(f,50);
Xeq=E/f4eth;
f5eth=f4eth-E;
f5w=f4w-E;
f5etoh=E;
f5et=f4et;
f5=f5eth+f5w+f5et+f5etoh;
% Valvula
f6=f5;
f6eth=f5eth;
f6et=f5et;
f6w=f5w;
f6etoh=f5etoh;
% Intercambiador - E-201
f7=f6;
f7eth=f6eth;
f7et=f6et;
f7w=f6w;
f7etoh=f6etoh;
% Separador Flash - V-201
f8eth=f7eth;
f8et=f7et;
f8=f8eth+f8et;
f9w=f7w;
f9etoh=f7etoh;
f9=f7-f8;
% Columna de destilacion - T-201
f12etoh=f9etoh;
f12=f12etoh/0.95;
f12w=0.05*f12;
f13w=f9w-f12w;
f13=f13w;
% Purga y Reciclo
f11=f8/(1+rpr);
yeth8=f8eth/f8;
yet8=1-yeth8;

f10=f8-f11;
f10et=yet8*f10;
f10eth=yeth8*f10;
f11et=yet8*f11;
f11eth=yeth8*f11;
% Compresor - C--201
f14=f11;
f14eth=f11eth;
f14et=f11et;
% Criterio de convergencia
d1=f14eth-f14ethasu;
d2=f14et-f14etasu;
d=sqrt(abs((d1^2)+(d2^2)));
while d>0.00001
f14ethasu=f14eth;
f14etasu=f14et;
f14asu=f14ethasu+f14etasu;
% Pto Mezcla 1
f3=f1est+f14asu;
f3eth=f1ethest+f14ethasu;
f3et=f1etest+f14etasu;
% Pto Mezcla 2
f2w=f1ethest*rweth;
f2=f2w;
f4=f2+f3;
f4eth=f3eth;
f4et=f3et;
f4w=f2w;
% Reactor - R-201
f=@(av)(P^-1)*(((av)/(f4-av))/(((f4eth-av)/(f4-av))*((f4w-av)/(f4-av))))Keq;
E=fzero(f,50);
Xeq=E/f4eth;
f5eth=f4eth-E;
f5w=f4w-E;
f5etoh=E;
f5et=f4et;
f5=f5eth+f5w+f5et+f5etoh;
% Valvula
f6=f5;
f6eth=f5eth;
f6et=f5et;
f6w=f5w;
f6etoh=f5etoh;
% Intercambiador - E-201
f7=f6;
f7eth=f6eth;

f7et=f6et;
f7w=f6w;
f7etoh=f6etoh;
% Separador Flash - V-201
f8eth=f7eth;
f8et=f7et;
f8=f8eth+f8et;
f9w=f7w;
f9etoh=f7etoh;
f9=f7-f8;
% Columna de destilacion - T-201
f12etoh=f9etoh;
f12=f12etoh/0.95;
f12w=0.05*f12;
f13w=f9w-f12w;
f13=f13w;
% Purga y Reciclo
f11=f8/(1+rpr);
yeth8=f8eth/f8;
yet8=1-yeth8;
f10=f8-f11;
f10et=yet8*f10;
f10eth=yeth8*f10;
f11et=yet8*f11;
f11eth=yeth8*f11;
% Compresor - C-201
f14=f11;
f14eth=f11eth;
f14et=f11et;
% Criterio de convergencia
d1=f14eth-f14ethasu;
d2=f14et-f14etasu;
d=sqrt(abs((d1^2)+(d2^2)));
end
% factor de escala - s (Escalamiento de los flujos reales)
s=f12r/f12;
f1r=f1est*s;
f1ethr=f1ethest*s;
f1etr=f1etest*s;
f3r=f3*s;
f3ethr=f3eth*s;
f3etr=f3et*s;
f2r=f2*s;
f2wr=f2w*s;
f4r=f4*s;
f4ethr=f4eth*s;
f4etr=f4et*s;
f4wr=f4w*s;
f5r=f5*s;

f5ethr=f5eth*s;
f5etr=f5et*s;
f5wr=f5w*s;
f5etohr=f5etoh*s;
f6r=f6*s;
f6ethr=f6eth*s;
f6etr=f6et*s;
f6wr=f6w*s;
f6etohr=f6etoh*s;
f7r=f7*s;
f7ethr=f7eth*s;
f7etr=f7et*s;
f7wr=f7w*s;
f7etohr=f7etoh*s;
f8r=f8*s;
f8ethr=f8eth*s;
f8etr=f8et*s;
f9r=f9*s;
f9etohr=f9etoh*s;
f9wr=f9w*s;
f10r=f10*s;
f10ethr=f10eth*s;
f10etr=f10et*s;
f11r=f11*s;
f11ethr=f11eth*s;
f11etr=f11et*s;
f12r=f10*s;
f12etohr=f12etoh*s;
f12wr=f12w*s;
f13r=f13*s;
f13wr=f13w*s;
f14r=f14*s;
f14ethr=f14eth*s;
f14etr=f14et*s;

Вам также может понравиться