Anda di halaman 1dari 7

clc

clear all
global CA0 CB0 V Tj E delHR CpA CpB CpC A U R T XA

CA0=2.5; gmol/dm^3
CB0=5; gmol/dm^3
V=1200; dm^3
Tj=447; C
E=83.6; kj/gmol
delHR=27.85; kj/gmol
CpA=14; j/gmol K
CpB=28; j/gmol K
CpC=42; j/gmol K
A=5; m^2
U=3.76; kj/min m^2 K
R=0.0826;

T0=303;
XA0=0.33;

tspan=[0 3600]
[t,C]=ode45('steam',tspan,[T0 XA0])

XA= C(:,1);
T= C(:,2);

plot(t,XA,t,T)
legend('XA', 'T')

function out = persamaan(t,C)


global CA0 CB0 V Tj E delHR CpA CpB A U R T XA

XA= C(1);
T= C(2);

dXA=-(0.01*exp((-E/R)*(1/T-1/300))*CA0^2*(1-XA)*(CB0/CA0-XA))/CA0;
dT=(U*A*(Tj-T)+(-0.01*exp((-E/R)*(1/T-1/300))*CA0^2*(1-XA)*(CB0/CA0-
XA))*V*delHR)/(V*CA0*(CpA+CB0*CpB/CA0));

out=[dXA; dT];
tspan =

0 3600

t=

1.0e+03 *

0.0004

0.0008

0.0012

0.0017

0.0037

0.0058

0.0079

0.0100

0.0203

0.0307

0.0410

0.0514

0.1032

0.1551

0.2069

0.2587

0.3487

0.4387

0.5287
0.6187

0.7087

0.7987

0.8887

0.9787

1.0687

1.1587

1.2487

1.3387

1.4287

1.5187

1.6087

1.6987

1.7887

1.8787

1.9687

2.0587

2.1140

2.1693

2.2246

2.2799

2.3352

2.3905

2.4458

2.5010

2.5847

2.6683

2.7519

2.8355
2.9255

3.0155

3.1055

3.1955

3.2855

3.3755

3.4655

3.5555

3.5666

3.5778

3.5889

3.6000

C=

303.0000 0.3300

303.0000 0.3466

303.0000 0.3632

303.0000 0.3797

303.0000 0.3963

303.0000 0.4792

303.0000 0.5620

303.0000 0.6449

303.0000 0.7277

303.0000 1.1416

303.0000 1.5551

303.0000 1.9683

303.0000 2.3810
303.0000 4.4390

303.0000 6.4875

303.0000 8.5265

303.0000 10.5561

303.0000 14.0584

303.0000 17.5327

303.0000 20.9791

303.0000 24.3978

303.0000 27.7891

303.0000 31.1532

303.0000 34.4902

303.0000 37.8005

302.9997 41.0842

302.9996 44.3415

302.9981 47.5721

302.9905 50.7744

302.9639 53.9435

302.8912 57.0689

302.6983 60.1215

302.2510 63.0487

301.3539 65.7742

299.7130 68.1831

297.1033 70.1886

293.4354 71.7587

290.6835 72.5194

287.6052 73.1468

284.2474 73.6601

280.6687 74.0832

276.9307 74.4411
273.0681 74.7477

269.1095 75.0147

265.0866 75.2549

258.9462 75.5936

252.7457 75.9059

246.4964 76.1963

240.2455 76.4839

233.5481 76.8033

226.8676 77.1269

220.2116 77.4575

213.5842 77.7969

206.9845 78.1444

200.4216 78.5038

193.9029 78.8778

187.4229 79.2642

186.6244 79.3126

185.8266 79.3611

185.0294 79.4099

184.2328 79.4589