You are on page 1of 3

clc;

clear;
back='y';
while back=='y'
disp('=====================================================================');
disp('Perhitungan lajur alir packed tower berdasarkan diameter tower');
disp(' untuk sistem MDEA,H2O dan CO2');
disp('=====================================================================');
%diameter tower%
Dtx=input('masukan diameter packed bed (m) = ');
%dalam ft%
Dt=Dtx*3.2808;
tol=10^-4;
disp('1. Rachig Ring metal');
disp('2. Rachig Ring ceramic');
disp('3. Intalox saddle ceramic');
disp('4. Pall ring metal');
disp('5. Pall ring plastic');
method=input('masukan jenis packing = ');
%diameter packing%
dpx=input('masukan diameter packing (mm) = ');
dp=dpx*0.03937008;
%factor packing (ft2/ft3)%
switch method
case 1
Fp=37*dp^2-210*dp+330;
case 2
Fp=31.5*dp^2-188.5*dp+322;
case 3
Fp=23.5*dp^2-132.5*dp+201;
case 4
Fp=50.566*dp^-0.949;
case 5
Fp=52.173*dp^-1.011;
end
disp('1. Glycine');
disp('2. DEA');
disp('3. Piperazine');
in=input('masukan jenis promotor = ');
switch in
case 1
Pprom=91.1448;
case 2
Pprom=68.48347;
case 3
Pprom=68.67076;
end
if in==1
disp('Untuk sistem MDEA,H2O dan Glycine');
else
if in==2
disp('Untuk sistem MDEA,H2O dan DEA');
else
disp('Untuk sistem MDEA,H2O dan Piperazine');
end
end
%input Laju alir%
x1x=input('masukkan nilai Laju alir trial (ml/min) = ');
%konversi dalam (ft3/s)%
x1=x1x*(3.53147*10^-5);
x2=3*x1;
%Flow Liquid%
Fprom=0.047*x1;
FMDEA=0.2*(x1-Fprom);
Fh2o=0.8*(x1-Fprom);
%fraksi%
xMDEA=FMDEA/x1;
xh2o=Fh2o/x1;
xprom=Fprom/x1;
pi=22/7;
g=9.8*3.28084;%(ft/s2)%
%viskositas (cP)%
Vh2o=0.347;%h2o%
VMDEA=101;%MDEA%
Vl=xMDEA*VMDEA+xh2o*Vh2o;%pelarut%
%Densitas (lb/ft3)%
PMDEA=64.9875;%mdea%
Ph2og=0.0369;%h2o gas%
Pco2=12.3607;%co2%
Pg=0.5*Ph2og+0.5*Pco2;%gas%
Ph2ol=62.11;%h2o liquid%
Pl=xMDEA*PMDEA+xh2o*Ph2ol+xprom*Pprom;%pelarut%
%Fungsi Densitas (dimensionless)%
fD=(-0.8787+2.667*(Ph2ol/Pl)-0.6313*(Ph2ol/Pl)^2);
%Fungsi Viskositas (dimensionless)%
fV=0.96*(Vl^0.19);
%laju Gas%
%asumsi semua h2o terupakan sempurna%
G1=xh2o*x1;
G2=xh2o*x2;
%flooding velocity%
Uf1=(4*G1*Pg)/(0.75*pi*Pg*Dt^2);
Uf2=(4*G2*Pg)/(0.75*pi*Pg*Dt^2);
%flow ratio%
FL1=(x1/G1)*(Pg/Pl)^0.5;
FL2=(x2/G2)*(Pg/Pl)^0.5;
%Flooding Factor%
Y1=exp(-3.7121-1.0371*(log(FL1))-0.1501*(log(FL1))^2-0.007544*(log(FL1))^3);
Y2=exp(-3.7121-1.0371*(log(FL2))-0.1501*(log(FL2))^2-0.007544*(log(FL2))^3);
f1=((Uf1^2)*Fp/g)*(Pg/Ph2ol)*fD*fV-Y1;
f2=((Uf2^2)*Fp/g)*(Pg/Ph2ol)*fD*fV-Y2;
e=1;
ite=0;
while e>tol;
x3=x2-(f2*(x2-x1)/(f2-f1));
ite=ite+1;
G3=xh2o*x3;
Uf3=(4*G3*Pg)/(0.75*pi*Pg*Dt^2);
FL3=(x3/G3)*(Pg/Pl)^0.5;
Y3=exp(-3.7121-1.0371*(log(FL3))-0.1501*(log(FL3))^2-0.007544*(log(FL3))^3);
f3=((Uf3^2)*Fp/g)*(Pg/Ph2ol)*fD*fV-Y3;
e=abs(f3);
x1=x2;
x2=x3;
f1=f2;
f2=f3;
end
Lmax=x3*28316.8;
disp('=====================================================================');
disp(['iterasi=',num2str(ite)]);
disp(['error=',num2str(e)]);
disp(['Laju alir maksimal adalah ',num2str(Lmax),' ml/min']);
if x1x<Lmax;
disp('laju alir tersebut telah sesuai aman dari flooding')
else
disp('laju alir tersebut tidak aman akan terjadi flooding')
end
disp('=====================================================================');
choice = questdlg('Ingin menghitung ulang?', ...
'Packed Tower Flow Calculation', ...
'Yes','No','No');
switch choice
case 'Yes'
back='y';
case 'No'
back=0;
end
end
disp('program dibuat oleh : Gilang Adi S');
disp('=========================Terima Kasih================================');

You might also like