(Difusi-Adveksi-Reaksi)
Matematika-FMIPA ITB
JJ J N I II 1/61
Intermezzo
http://www.est.okayama-u.ac.jp/department/emsen.html
Turunan,
Integral,
Real world
Stokastik, dll.
Penjadwalan,
Keamanan,
Math tools Antrian, dll.
JJ J N I II 3/61
Pemodelan Matematika
• Suatu transformasi diperlukan untuk menyatakan suatu fenomena
dalam bentuk formula matematika yang jelas.
• Proses transformasi = mathematical modelling.
• Fenomena yang dimodelkan: Sistem
• Alat matematika+interpretasi: model matematika.
• Suatu model matematika (selalu) memuat simplifikasi.
• Model terlalu "kasar"; hasil tidak cukup akurat untuk diterima.
• Model terlau "halus"; model menjadi rumit dan tidak dapat disele-
saikan.
e
pl
p
K It S and S , but ME
im
ee
ho
an
rt
in
gf
ul
JJ J N I II 4/61
Mengapa pemodelan matematika?
Paling sedikit ada tiga alasan, konstruksi:
e
pl
p
K It S and S , but ME
im
ee
ho
an
rt
in
gf
ul
JJ J N I II 5/61
Siklus pemodelan
Simplification
Real world data Model
Verification
Analysis
Prediction Math conclusion
Interpretation
JJ J N I II 6/61
Proses difusi
Difusi adalah fenomena fisis yang melibatkan dua campuran massa zat
berbeda.
Besaran utama dalam proses difusi adalah konsentrasi, massa zat per
volume total campuran / volume suatu zat per volume total campuran.
Akibat gerak acak partikel maka beberapa molekul yang berada pada
daerah dengan konsentrasi tinggi akan bergerak ke daerah dengan kon-
sentrasi rendah.
JJ J N I II 7/61
Penurunan persamaan difusi...
C(x, t) Tinggi Rendah A
x x + 4x
Perhatikan suatu pipa dengan penampang tetap A yang berisi zat ter-
larut (solut) dengan konsentrasi C(x, t). Asumsikan bahwa konsentrasi
solut di salah satu sisi pipa lebih tinggi dari sisi pipa yang lain (lihat
gambar).
Pada segmen I = [x, x + 4x], dan perhatikan x1 ∈ I,
Laju perubahan Laju difusi
=
massa zat terlarut(solut) massa masuk dan keluar
dengan
∂C
Laju perubahan
= A4x (x1, t).
massa zat terlarut(solut) ∂t
JJ J N I II 8/61
Penurunan persamaan difusi...
C(x, t) Tinggi Rendah A
x x + 4x
JJ J N I II 9/61
Penurunan persamaan difusi...
C(x, t) Tinggi Rendah A
x x + 4x
∂C ∂J
Untuk 4x → 0 (juga x1 → x), =− .
∂t ∂x
Ada 1 persamaan dengan 2 peubah yaitu C dan J. Diperlukan sebuah
persamaan yang mengaitkan keduanya: persamaan keadaan, yang meli-
batkan sifat-sifat zat terlarut yang diamati.
Salah satu kaidah umum untuk menurunkan persamaan keadaan terse-
but adalah Hukum Fick (fluks massa sebanding dengan gradien konsen-
trasi):
∂C
J(x, t) = −D ,
∂x
dengan D konstanta positif (bisa berupa fungsi) yang disebut koefisien
difusi. Tanda minus menyatakan bahwa difusi bergerak ke arah konsen-
trasi rendah.
JJ J N I II 10/61
Persamaan difusi 1 dimensi
Diberikan oleh
∂C ∂ ∂C
= D , x ∈ Ω, t > 0.
∂t ∂x ∂x
1 2
dengan S(x, t) = √ e−x /4Dt, dinamakan fungsi Green/fungsi Gauss
4πDt
dari persamaan difusi.
X
C(x, t) ≈ S(x − yj , t)C0(yj )4yj .
j
JJ J N I II 11/61
Fungsi Gauss
1 2
S(x, t; xp) = √ e−(x−xp) /4Dt.
4πDt
Terdapat 2 parameter: xp (pergeseran mendatar) dan D (ukuran perse-
baran).
500 D<D
300 400
200 300
200
100
100
−3 −2 −1 1 2 3 −3 −2 −1 1 2 3
·10−3 ·10−3
JJ J N I II 12/61
Variasi: persamaan adveksi-difusi-reaksi
C(x, t) Tinggi +F (C) Rendah A
x x + 4x
Jika zat terlarut berada pada media yang bergerak dalam arah sumbu x
positif dengan kecepatan v(x, t), juga terdapat reaksi pada zat terlarut
dengan laju F (C(x, t)) dalam satuan konsentrasi per satuan waktu,
maka
∂C ∂ ∂ 2C
=− v(x, t)C + D 2 + F (C(x, t)) .
∂t ∂x ∂x } | {z }
reaksi
| {z | {z
}
adveksi difusi
JJ J N I II 13/61
Tiga fenomena
Ilustrasi: v, D konstan.
1 1 1
0.8 0.8 0.8
0.6 0.6 0.6
0.4 0.4 0.4
0.2 0.2 0.2
−2 2 4 6 8 10 12 −3 −2 −1 1 2 3 −2 2 4 6 8 10 12
Ê Ë Ì
JJ J N I II 14/61
Kondisi batas
C(x, t) Tinggi Rendah A
0 x x + 4x L
JJ J N I II 15/61
Masalah Difusi+reaksi
Industrial Mathematics Case Studies in the Diffusion of Heat and Matter, G.FULFORD & P. BROADBRIDGE, Cambridge University
Press,2002 .
Gas x
x=L
Film
x=0
Impermeable
Gas terlarut pada suatu cairan tipis/film yang berada pada suatu per-
mukaan padat/impermeable. Di dalam cairan tersebut gas bereaksi se-
hingga molekul berkurang/terserap oleh cairan sebanding dengan kon-
sentrasi gas saat tersebut. Misalkan konsentrasi gas pada permukaan
x = L selalu tetap yaitu C0, sedangkan pada permukaan x = 0 tidak
ada fluks massa gas yang keluar.
JJ J N I II 16/61
Model difusi+reaksi
Gas x
x=L
Film
x=0
Impermeable
x=0
Impermeable
JJ J N I II 18/61
Grafik solusi kesetimbangan
Tanpa dimensi: x∗ = x/L, δ = L λ/D,
p
Cs(x) ∗ ∗ cosh(δx∗)
≡ Cs (x ) = , 0 < x∗ < 1.
C0 cosh(δ)
D A
K
A A
Cs∗
A A
A A
A A
A A
δ
A AU
A
x∗
JJ J N I II 19/61
Model interaksi dua komponen/kompartemen
Sungai
v
JJ J N I II 20/61
Sistem dinamik, solusi kesetimbangan
Sungai
JJ J N I II 22/61
Masalah Smoke dispersion
inversion layer
z
U
smoke d
h
x
ground
.
Mathematical Models in Applied Mechanics, A.B. TAYLER, Oxford University Press, 1986
Smoke diffuses from a tall chimney of height h into the atmosphere and
is convected by the prevailing winds of velocity U . There is an inversion
layer in the lower atmosphere at a height d through which there is no
transport of smoke. At the ground the smoke will be deposited at a
rate λ which depends on the terrain and the local concentration, and we
assume that this rate can be determined empirically. Predict the profile
of the concentration of pollutant!.
JJ J N I II 23/61
Masalah Model matematika
z inversion layer
U
smoke d
h
x
ground
À Kasus steady dua dimensi, misal konsentrasi polutan c(x, z). Ke-
cepatan angin U dan koefisien D fungsi dari fungsi (x, z),
∂c ∂ ∂c ∂ ∂c
U = D + D , x > 0, 0 < z < d.
∂x ∂x ∂x ∂z ∂z
∂c ∂c
Á Syarat batas: di z = 0, = λ; di z = d, = 0.
∂z ∂z
Q
 Syarat batas: di x = 0, c(0, z) = δ(z − h), dengan Q adalah
U (h)
source strength polutan; x → ∞, c → 0.
JJ J N I II 24/61
Model tak berdimensi
U, D konstan, λ = Λc(x, 0), dan d → ∞ (∂c/∂z = 0 atau c = 0).
Analisis dimensi,
x∗ = x/L, z ∗ = x/h, c∗ = U c/Q, L = U h2/D.
Hilangkan tanda asterisk,
2
∂c 2∂ c ∂ 2c
À =ε + , ε = D/U h, x > 0, z > 0.
∂x ∂x2 ∂z 2
∂c ∂c
Á Syarat batas: di z = 0, = αc(x, 0), α = hΛ; di z → ∞, = 0.
∂z ∂z
 Syarat batas: di x = 0, c(0, z) = δ(z − 1); x → ∞, c → 0.
∂c ∂ 2c
À = , x > 0, z > 0.
∂x ∂z 2
∂c ∂c
Á Syarat batas: di z = 0, = 0; di z → ∞, = 0(c = 0).
∂z ∂z
 Syarat batas: di x = 0, c(0, z) = δ(z − 1); x → ∞, c → 0.
1
Di z = 0 permukaan tanah, c(x, 0) = √ e−1/4x.
πx
JJ J N I II 26/61
Deposit di permukaan tanah
1
Di z = 0 permukaan tanah, c(x, 0) = √ e−1/4x. Mencapai maksimum
r πx
2
di xmax = 1/2 dengan cmax =
πe
0.5
0.4
Konsentrasi Polutan
0.3
0.2
0.1
0.0
0 1 2 3 4 5 6
Lokasi
r
U h2 Q 2
Dalam peubah berdimensi xmax = , cmax = .
2D U πe
JJ J N I II 27/61
Kontur
1
2 2
c(x, z) = √ e−(z−1) /4x + e−(z+1) /4x .
4πx
Beberapa kontur dari c(x, z),
2.5 8
0.000
7
2.0
6
2
5
1.5
c 0.100
1 4
z
0.3
1.0
3
00
0
8 2
0.
20
6 0.5
0
0.500
0 4
0.3
0.40
1
2
00
z
0
2
4
0.0 0
x 6 0 0.00 0.25 0.50 0.75 1.00 0 2 4 6 8
x x
JJ J N I II 28/61
Gaussian plume solution
inversion layer
z
U
smoke d
h
x
ground
JJ J N I II 29/61
Gaussian puff solution
Jika sumber polusi bersifat ’nearly instantaneous (occurring over a rel-
atively short time interval), or are intermittent or time-varying, maka
modelnya akan memuat adveksi+difusi yang bergantung waktu. Jika
QT
sumber solusi berupa ’point source’, c(0, y, z, t) = δ(y)δ(z − h)δ(t).
U
Solusi yang diperoleh dikenal dengan Gaussian puff solution,
QT
−[((x−U t)2 +y 2 )/4r] −(z−1)2 /4r −(z+1)2 /4r
c(r, y, z) = e e + e ,
8(πr)3/2
x
1
Z
dengan r = K(s)ds, K(x) merupakan koefisien difusi eddy.
U 0
JJ J N I II 30/61
Masalah Penjernihan air, Reverse Osmosis
Industrial Mathematics Case Studies in the Diffusion of Heat and Matter, G.FULFORD & P. BROADBRIDGE, Cambridge University
Press,2002 .
Proses penjernihan/penyaringan air menggunakan konsep
Reverse Osmosis (RO):
Salt water
Semi-permeable
Pure water
Semi-permeable
Salt water
JJ J N I II 31/61
Penjernihan air
Salt water
Semi-permeable
Pure water
Semi-permeable
Salt water
JJ J N I II 32/61
Model penjernihan air
y
v(y)
salt water
C(x, y, t)
semi-permeable
x
q
pure water
JJ J N I II 34/61
Solusi kesetimbangan...2
y
v(y)
salt water
C(x, y, t)
semi-permeable
x
q
pure water
• Cs(0, y) = 1
∂Cs
• (x, 0) = −λCs(x, 0), λ = qH/D dan Cs(x, ∞) = 1.
∂y
JJ J N I II 37/61
Analisis lanjut
Kasus khusus, dalam hal konsentrasi Cs(x, y) tidak berbeda jauh dengan
konsentrasi inlet, artinya Cs(x, y) ≈ 1, bisa kita tulis
Cs(x, y) = 1 + cs(x, y).
Substitusikan ke persamaan pada slide sebelumnya, diperoleh
∂cs ∂ 2cs
y = .
∂x ∂y 2
• cs(0, y) = 0,
∂cs
• (x, 0) = −λ(1 + cs(x, 0)) dan cs(x, ∞) = 0.
∂y
JJ J N I II 38/61
Similarity transformation
Transformasi cs(x, y) = x1/3f (η), η = yx−1/3, substitusikan ke per-
samaan pada slide sebelumnya, diperoleh
η df d2f
f −η = 2.
3 dη dη
df
• (0) = −λ dan f (∞) = 0.
dη
3 /9
R∞ e−z
Solusi umum: f (η) = k1η + k2η dz dan solusi yang memenuhi
η z2
kondisi batas:
Z∞
η
−η 3 /9 −z 3 /9
f (η) = k2 e − ze dz
3
η
3−1/3λ
dengan k2 = R ∞ −p3 .
0 pe dp
JJ J N I II 39/61
Konsentrasi di sekitar membran
y
v(y)
salt water
C(x, y, t) semi-permeable
x
q
pure water
3−1/3λ
Cs(x, 0) = 1 + cs(x, 0) = 1 + R ∞ −p3 x1/3, λ = qH/D.
0 pe dp
q
K
A
A
Cs (x, 0) A
A
A
A
A
x
JJ J N I II 40/61
Penurunan persamaan Laplace
4x
Ly
qx 4y
y
qy
0 x Lx
qx 4y
y
qy
0 x Lx
qx(x, y + 4y/2) − qx(x + 4x/2, y + 4y/2) 4y
+ qy (x + 4x/2, y) − qy (x + 4x/2, y + 4y/2) 4x = 0
qx 4y
y
qy
0 x Lx
∂u ∂u
Jika qx = α2 dan qy = α2 (Hukum Fick):
∂x ∂y
∂qx ∂qy ∂ 2u ∂ 2u
+ = 0 ⇒ 2 + 2 = 0,
∂x ∂y ∂x ∂y
menyatakan kondisi steady/tunak untuk persamaan difusi dua dimensi.
JJ J N I II 43/61
Syarat batas
∂ 2u ∂ 2u
+ = 0, 0 ≤ x ≤ Lx, 0 ≤ y ≤ Ly .
∂x2 ∂y 2
Tiga jenis syarat batas:
Catatan: Jika semua syarat batas pada domain yang diamati adalah
syarat batas Neumann, maka solusi persamaan Laplace tidak tunggal;
jika u(x, y) solusi maka u(x, y) + c untuk suatu konstanta juga solusi.
JJ J N I II 44/61
Contoh:resapan air tanah
u = gH + gcx
H
ux = 0 ∂ 2u ∂ 2u ux = 0
+ =0
∂x2 ∂y 2
0 uy = 0 L
∂ 2u ∂ 2u
+ = 0, 0 ≤ x ≤ L, 0 ≤ y ≤ H.
∂x2 ∂y 2
u(x, y): potensial hidrolik. Syarat batas:
∂ 2u ∂ 2u
+ = 0, −1 ≤ x ≤ 1, 0 ≤ y ≤ 1/2.
∂x2 ∂y 2
u(x, y): potensial hidrolik. Syarat batas:
JJ J N I II 47/61
Masalah Galur irigasi
Industrial Mathematics Case Studies in the Diffusion of Heat and Matter, G.FULFORD & P. BROADBRIDGE, Cambridge University
Press,2002 .
Water
2w
2`
JJ J N I II 49/61
Model
Water
x
w
`
z
JJ J N I II 50/61
Model kesetimbangan+kondisi batas
Water
x
w
`
z
∂Ψ
Tulis D(θ) = K(θ) (Persamaan Richard):
∂θ
∂ ∂θ ∂ ∂θ ∂θ
D(θ) + D(θ) − K 0(θ) = 0, 0 < x < `, 0 < z.
∂x ∂x ∂z ∂z ∂z
∂µ ∂Ψ
Dari K 0(µ) = γ ⇒ K = γµ dan = D(θ) = K(θ) diperoleh
∂θ ∂θ
∂µ
= K(θ) = γµ ⇒ γµ(x, z) = KseγΨ.
∂Ψ
atau
1 γµ(x, z)
Ψ(x, z) = ln .
γ Ks
JJ J N I II 53/61
Contoh data
Data: γ = 0.05 cm−1 (tanah lempung), R = Ks = 5 cm/hari, ` = 200
cm.
Misal Potensial kapiler Ψ(`, 3) > −150 cm, maka w > 14 cm (lebar
galur irigasi kira-kira > 28 cm).
An extended problem: For well developed crops, a sink term, repre-
senting plant root water extraction, would need to be included in the
Richards’ equation.
JJ J N I II 54/61
Masalah Perlindungan lahan hijau
Lahan hijau
Urbanisasi
JJ J N I II 55/61
Gagasan
Lahan hijau
Urbanisasi
JJ J N I II 56/61
CA
å Sel/Grid:persegi, heksagonal
å Ketetanggaan sel/grid: von Neumann, Moore
å Keadaan sel/grid: Lahan kosong-pemukiman-sawah.
å Aturan sel/grid: Unik...tiap masalah akan berbeda.
JJ J N I II 57/61
CA: TA Urfi
P (fS , fP ) S (fP , fS )
lanjut lanjut
tolak tolak
negosiasi kerja sama
S P
berhenti berhenti
(fS , fP ) (fP , fS )
S P
P (fS , fP ) S (fP , fS )
lanjut lanjut
tolak tolak
S P
berhenti berhenti
(fS , fP ) (fP , fS )
JJ J N I II 60/61
Simulasi: initial node P