You are on page 1of 4

FACULTY OF INDUSTRIAL TECHNOLOGY

UNIVERSITAS KATOLIK PARAHYANGAN


DEPARTMENT OF CHEMICAL ENGINEERING
CHEMICAL PROCESS COMPUTATION HOMEWORK
Assistant : Taniadi Suria
Solution of Ordinary Differential Equations with Optimization
Petunjuk umum:
1. Waktu pengerjaan adalah 1 minggu.
2. Tulislah jawaban dalam dokumen Microsoft Word yang berisi scipt MATLAB, dan apa yang
ditanyakan dalam soal (Grafik, jawaban angka, dsb). Sertakan script MATLAB di akhir jawaban.
Sertakan hanya hasil akhir (hasil akhir hitungan MATLAB, grafik dsb). Gunakanlah `;` dalam
MATLAB untuk menyembunyikan hasil antara yang tidak perlu ditampilkan.
3. Buatlah dokumen Microsoft Word yang rapi dan mudah dibaca.
4. Kumpulkan jawaban dalam sebuah folder. Beri nama folder dengan format : TUGAS FITTING SHIFT
NAMA NRP. Contoh: TUGAS OPTIMASI SHIFT04 Budi 6213200. Kemudian simpanlah folder dan
isinya dalam bentuk ZIP ataupun rar.
5. Semua file jawaban dikirim dalam bentuk Rar ataupun Zip yang didapat dari folder (lihat petunjuk
nomor (4). Kirimkan jawaban melalui email ke taniadi.suria@gmail.com dengan format subjek
email TUGAS KOMPUT UNPAR 1314 OPTIMASI Shift Nama NRP. Contoh: TUGAS KOMPUT UNPAR
1314 OPTIMASI SHIFT04 Budi 6213200.
6. Bekerjalah secara MANDIRI. Menyontek pekerjaan teman Anda hanya akan merugikan diri Anda
sendiri. Kerjakan soal-soal ini untuk menambah pengetahuan dan kemahiran Anda.
7. Selamat mengerjakan. Semoga berhasil.

1. Finding Parameters from Model Experimental Data.


Real continuous stirred tank reactor (CSTR) can be modeled using ideal CSTR
reactors. However, there can be significant difference between ideal reactors and
real reactors. Real CSTR can be modeled as two CSTRs with interchange. In this
model, real reactor is modeled as CSTR with 2 regions.

Let represents the fraction of total flow that is exchanged between reactors 1 and
2.

v 1= v o
Page 1 of 4

And let represent that fraction of the total volume V occupied by the highly
agitated region:

V 1= V
V 2=(1 )V
And

V
vo

when a tracer is injected to reactors, mole balance on tracer for each tank is:

V1

dC a 1
=v 1 Ca2 ( v o C a1 +v 1 C a 1 )
dt

V2

dC a 2
=v 1 Ca1v 1 C a 2
dt

Introducing , , and to 2 differential equations above yields:

dCa 1
= Ca2 ( 1+ ) C a 1
dt

(*)

(1 )

dC a 2
= C a 1 Ca 2
dt

(**)
In an experiment, tracer was injected to a CSTR reactor, and tracer concentration
leaving reactor was measured (Ca1) and given in table below:
Time
(min)
Ca1
(g/m3)

20

40

60

80

120

160

200

240

2000

1050

520

280

160

61

29

16.4

10.0

If = 40 min-1 and initially (at t=0), Ca2 = 0 g/m3, determine the value of and
based on experimental value of C a1 above. Plot the value of Ca1 calculated by you
and experimental value in one graph. Comment on the calculated fitting results.
Use MATLAB to solve this problem.

Page 2 of 4

Hint : Begin by guessing the value of and , integrate (*) and (**) simultaneously,
then use least square error (minimizing Sum-of-square error (SSE) = (Ca1Ca1,calculated)2) method to determine the value of and .
[Adapted from Fogler, H. S., Elements of Chemical Reaction Engineering, 4th Edition,
2006].
2. Compound A diffuses through a 4-cm long tube and reacts as it diffuses. The
equation governing diffusion with reaction is:

d2 A
k A=0
dx 2

At one end of the tube, there is a large source of A at concentration of 0.1 M. At the
other end of the tube, there is adsorbent material that quickly absorbs any A,
making the concentration 0 M. Concentration of A as function of tube length data
are given below:
x
(cm)
A (M)

0
0.1

0.027
5
0.095
1

0.410
1
0.047
3

0.910
1
0.019
0

1.510
1
0.006
3

1.910
1
0.003
1

3.010
1
0.000
4

3.510
1
0.000
1

4
0

Determine the values of D and k which fit the measurement data by solving
differential equation (ode23 or ode45 in MATLAB) and fitting D and k numerically
(fminsearch in MATLAB)! Plot Adata and Amodel in one figure!
Hint: the order of magnitude of k and A are both about 1 x 10 -6. No need to change
units!
[Adapted from Chapra & Canale, Numerical Methods for Engineers, 6 th Edition].

3. Dalam sebuah reaktor batch, terjadi reaksi fasa cair A B = C. Hasil pengamatan
kinetika reaksi disajikan dalam table berikut:
t
(menit)
0
1
2
3
4
5
6
7
8

CA (M)

CB (M)
1
0.87
0.785
0.715
0.67
0.635
0.605
0.58
0.555

0
0.125
0.1875
0.2075
0.2175
0.22
0.22
0.21875
0.215

Page 3 of 4

CC (M)
0
0.005
0.0275
0.0775
0.11250
0.14750
0.175
0.20125
0.23

9
0.5325
0.2125
0.255
10
0.52
0.21
0.27
Konsentrasi A, B, dan C sepanjang waktu dapat dinyatakan dengan sebuah sistem
persamaan diferensial neraca komponen dalam reaktor berikut:

dCA
=k 1 CkA
dt

d CB
=k 1 C kA k 2 C kB
dt
3

d CC
=k 2 CkB
dt

Hitunglah nilai k1-k4 dan buatlah plot grafik konsentrasi CA, CB, CC model dan data!
Good Luck!

Page 4 of 4

You might also like