You are on page 1of 2

function Latihan2MTKAgriYosfiFahmiLofa

clear all; clc

T=60+273; %Suhu FD

F=100; % Jumlah Umpan 100 kmol

z=[0.55 0.45];

pt=1;

eps=0.01;

fold=4;

L=35;

jt=1;

[f,xh,yh]=flasht1(pt,z,L,T);

fprintf(' Suhu = %3.2f \n',T);

fprintf(' Komposisi atas, y butana = %2.2f, y pentana = %2.2f,Jumlah Y = %2.2f\n',yh(1),yh(2),


(yh(1)+yh(2)))

fprintf(' Komposisi bawah, x butana = %2.2f, x pentana =%2.2f, Jumlah X = %2.2f\n',xh(1),xh(2),


(xh(1)+xh(2)))

fprintf(' Banyaknya Cairan yang menguap = %2.0f persen\n', L)

function [f,x,y]=flasht1(pt,z,L,T);

xt=0;

F=100;

V=F-L;

p=datatek(T);

for i=1:2

k(i)=p(i)/pt;

x(1)=z(1)/(1+V/F*(k(1)-1));

x(2)=1-x(1);
y(1)=x(1)*k(1);

y(2)=1-y(1);

xt=xt+x(i);

end

f=1-xt;

function p=datatek(T)

A=[15.6728 15.8333];

B=[2154.9 2477.07];

C=[-34.42 -39.94];

for i=1:2

p(i)=exp(A(i)-B(i)/(T+C(i)))/760;

end

You might also like