SlideShare a Scribd company logo
1 of 4
% ESTE PROGRAMA USA EL METODO MCCABE-THIELE
% PARA EL DISENO DE UNA COLUMNA DE DESTILACION
% BINARIA PARA SISTEMA IDEALES QUE PRESENTAN
% VOLATILIDAD RELATIVA CONSTANTE
clear % LIMPIA EL WORKSPACE
clc % LIMPIA COMMAND WINDOW
% PARAMETROS DE DISENO
z = 0.45; % FRACCION MOLAR DE ALIMENTACION
a = 4.82; % VOLATILIDAD RELATIVA
q = 0.6; % CALIDAD DE ALIMENTACION
xd = 0.95; % COMPOSICION DE COMPONENTE LIGERO
EN EL DESTILADO
xb = 0.03; % COMPOSICION DE COMPONENTE LIGERO
EN EL FONDO
R_Rmin = 1.3; % REFLUJO ACTUAL REFLUJO ACTUAL
ENTRE REFLUJO MINIMO
% CALCULO DE LA CURVA DE EQUILIBRIO
x0 = 0;
n = 20;
for i = 1:n+1
x(i) = x0;
y(i) = a*x(i)/(1+x(i)*(a-1));
x0 = x0 + 1.0/n;
end
x(i+1) = 0;
y(i+1)= 0;
% LINEA DE COMPOSICION DE DESTILADO
x_d = [xd, xd];
y_d = [0, xd];
% LINEA DE COMPOSICION DE FONDOS
x_b = [xb, xb];
y_b = [0, xb];
% LINEA DE COMPOSICION DE ALIMENTACI?N
x_z = [z, z];
y_z = [0, z];
if q == 0
q = 1e-5
end
% CALCULO DEL PUNTO PINCH
xp = ((a-1)*(z+q)-a+(((a-1)*(z+q)-a)^2+4*z*(a-
1)*q)^0.5)/(2*(a-1)*q);
yp = a*xp/(1+xp*(a-1));
% CALCULO DE REFLUJO MINIMO
Rmin = (xd-yp)/(yp-xp);
Smin = (xp-xb)/(yp-xp);
% CALCULO DE RELACION DE REFLUJO ACTUAL
R = R_Rmin*Rmin;
% CALCULO DEL PUNTO DE INTERSECCION DE LA LINEAS
DE OPERACION
xi = (z*(R+1) +xd*(q-1))/(q*(R+1)-R*(q-1));
yi = (R/(R+1))*xi + xd/(R+1);
% TRAZADO DE LINEAS DE RECTIFICACI?N Y
AGOTAMIENTO
xl(1) = xd;
yl(1) = xd;
xl(2) = xi;
yl(2) = yi;
xl(3) = xb;
yl(3) = xb;
% CALCULO DE RELACION DE EBULLICION ACTUAL
S = (xl(2)-xb)/(yl(2)-xl(2));
% LINEA DE q
x_q = [z,xi];
y_q = [z,yi];
% TRAZADO DE LINEAS
xe(1) = xd; %x0
ye(1) = xd; %y1
er = 0; % CONTADOR DE ETAPAS DE RECTIFICACION
ea = 0; % CONTADOR DE ETAPAS DE AGOTAMIENTO
i = 2;
while xe(i-1) > xb
xe(i) = ye(i-1)/(a-(a-1)*ye(i-1));
ye(i) = ye(i-1);
xe(i+1) = xe(i);
if xe(i) > xi
ye(i+1) = (R/(R+1))* xe(i) + xd/ (R+1);
er = er + 1;
else
ye(i+1) = ((S+1)/S)*xe(i) - xb/S;
ea = ea + 1;
end
i = i + 2;
end
e = er + ea; %NUMERO DE ETAPAS TOTALES
% GRAFICA
plot(x,y,'k'), hold on % DATOS DE EQUILIBRIO
plot(x_d,y_d,'--k') % XD
plot(x_b,y_b,'--k') % XB
plot(x_z,y_z,'--k') % Z
plot(x_q,y_q,'k') % Q-LINE
plot(xl, yl, 'k') % LINEAS DE OPERACION
plot(xe, ye, 'k'), hold off % ETAPAS DE
EQUILIBRIO
xlabel('Composicion de liquido, x')
ylabel('Composicion de vapor, y')
axis square
axis normal
axis ([0 1 0 1])
text(0.03,0.95, ['Relacion de Reflujo Minimo =
',num2str(Rmin)])
text(0.03,0.925, ['Relacion de Reflujo Actual =
',num2str(R)])
text(0.03,0.9, ['Numero de Etapas de Equilibrio =
',num2str(e)])
text(0.03,0.875, ['Etapa de Alimentacion =
',num2str(er)])

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Mc cabe thiele cuestionario.xlsx

  • 1. % ESTE PROGRAMA USA EL METODO MCCABE-THIELE % PARA EL DISENO DE UNA COLUMNA DE DESTILACION % BINARIA PARA SISTEMA IDEALES QUE PRESENTAN % VOLATILIDAD RELATIVA CONSTANTE clear % LIMPIA EL WORKSPACE clc % LIMPIA COMMAND WINDOW % PARAMETROS DE DISENO z = 0.45; % FRACCION MOLAR DE ALIMENTACION a = 4.82; % VOLATILIDAD RELATIVA q = 0.6; % CALIDAD DE ALIMENTACION xd = 0.95; % COMPOSICION DE COMPONENTE LIGERO EN EL DESTILADO xb = 0.03; % COMPOSICION DE COMPONENTE LIGERO EN EL FONDO R_Rmin = 1.3; % REFLUJO ACTUAL REFLUJO ACTUAL ENTRE REFLUJO MINIMO % CALCULO DE LA CURVA DE EQUILIBRIO x0 = 0; n = 20; for i = 1:n+1 x(i) = x0; y(i) = a*x(i)/(1+x(i)*(a-1)); x0 = x0 + 1.0/n; end x(i+1) = 0; y(i+1)= 0; % LINEA DE COMPOSICION DE DESTILADO x_d = [xd, xd]; y_d = [0, xd]; % LINEA DE COMPOSICION DE FONDOS x_b = [xb, xb]; y_b = [0, xb]; % LINEA DE COMPOSICION DE ALIMENTACI?N
  • 2. x_z = [z, z]; y_z = [0, z]; if q == 0 q = 1e-5 end % CALCULO DEL PUNTO PINCH xp = ((a-1)*(z+q)-a+(((a-1)*(z+q)-a)^2+4*z*(a- 1)*q)^0.5)/(2*(a-1)*q); yp = a*xp/(1+xp*(a-1)); % CALCULO DE REFLUJO MINIMO Rmin = (xd-yp)/(yp-xp); Smin = (xp-xb)/(yp-xp); % CALCULO DE RELACION DE REFLUJO ACTUAL R = R_Rmin*Rmin; % CALCULO DEL PUNTO DE INTERSECCION DE LA LINEAS DE OPERACION xi = (z*(R+1) +xd*(q-1))/(q*(R+1)-R*(q-1)); yi = (R/(R+1))*xi + xd/(R+1); % TRAZADO DE LINEAS DE RECTIFICACI?N Y AGOTAMIENTO xl(1) = xd; yl(1) = xd; xl(2) = xi; yl(2) = yi; xl(3) = xb; yl(3) = xb; % CALCULO DE RELACION DE EBULLICION ACTUAL S = (xl(2)-xb)/(yl(2)-xl(2)); % LINEA DE q x_q = [z,xi]; y_q = [z,yi];
  • 3. % TRAZADO DE LINEAS xe(1) = xd; %x0 ye(1) = xd; %y1 er = 0; % CONTADOR DE ETAPAS DE RECTIFICACION ea = 0; % CONTADOR DE ETAPAS DE AGOTAMIENTO i = 2; while xe(i-1) > xb xe(i) = ye(i-1)/(a-(a-1)*ye(i-1)); ye(i) = ye(i-1); xe(i+1) = xe(i); if xe(i) > xi ye(i+1) = (R/(R+1))* xe(i) + xd/ (R+1); er = er + 1; else ye(i+1) = ((S+1)/S)*xe(i) - xb/S; ea = ea + 1; end i = i + 2; end e = er + ea; %NUMERO DE ETAPAS TOTALES % GRAFICA plot(x,y,'k'), hold on % DATOS DE EQUILIBRIO plot(x_d,y_d,'--k') % XD plot(x_b,y_b,'--k') % XB plot(x_z,y_z,'--k') % Z plot(x_q,y_q,'k') % Q-LINE plot(xl, yl, 'k') % LINEAS DE OPERACION plot(xe, ye, 'k'), hold off % ETAPAS DE EQUILIBRIO xlabel('Composicion de liquido, x') ylabel('Composicion de vapor, y') axis square axis normal axis ([0 1 0 1])
  • 4. text(0.03,0.95, ['Relacion de Reflujo Minimo = ',num2str(Rmin)]) text(0.03,0.925, ['Relacion de Reflujo Actual = ',num2str(R)]) text(0.03,0.9, ['Numero de Etapas de Equilibrio = ',num2str(e)]) text(0.03,0.875, ['Etapa de Alimentacion = ',num2str(er)])