Anda di halaman 1dari 23

SOLUSI NUMERIK

PERSAMAAN DIFERENSIAL PARSIAL


(Persamaan Laplace)

Partial Differential Equations – PDE


Persamaan Diferensial Parsial – PDE
2 http://istiarto.staff.ugm.ac.id

q  Acuan
q  Chapra, S.C., Canale R.P., 1990, Numerical Methods for Engineers,
2nd Ed., McGraw-Hill Book Co., New York.
n  Chapter 23 dan 24, hlm. 707-749.
Persamaan Diferensial Parsial – PDE
3 http://istiarto.staff.ugm.ac.id

q  Suatu fungsi u yang bergantung pada x dan y: u(x,y)


q  Diferensial u terhadap x di sembarang titik (x,y)
∂u u(x + Δx, y ) − u(x, y )
= lim
∂x Δx →0 Δx

q  Diferensial u terhadap y di sembarang titik (x,y)


∂u u(x, y + Δy ) − u(x, y )
= lim
∂y Δy →0 Δy
8 Persamaan Diferensial Parsial – PDE
PDE Eliptik (Persamaan Laplace)
Teknik Penyelesaian Persamaan Laplace

http://istiarto.staff.ugm.ac.id
Persamaan Laplace
9 http://istiarto.staff.ugm.ac.id

q  Sebuah plat logam persegi tipis


q  kedua permukaan dilapisi

dengan isolator panas


Y
q  sisi-sisi plat diberi panas

dengan temperatur tertentu


X
q transfer panas hanya
dimungkinkan pada arah x
dan y
q  Ditinjau pada saat transfer
∆z permanen telah tercapai (steady-
state condition)
Persamaan Laplace
10 http://istiarto.staff.ugm.ac.id

Y q  Pada steady-state condition, aliran kedalam


sebuah elemen (lihat gambar di samping)
selama periode ∆t haruslah sama dengan aliran
yang keluar dari elemen tsb:
q(y)+q(y+∆y)
q(x ) Δy Δz Δt + q(y ) Δx Δz Δt =
q(x)+q(x+∆x)
q(x + Δx ) Δy Δz Δt + q(y + Δy ) Δx Δz Δt
q(x) ∆y
q(x) dan q(y) berturut-turut adalah fluks panas
q(y) arah x dan arah y, dalam satuan kal/cm2/s.

X
∆x
Persamaan Laplace
11 http://istiarto.staff.ugm.ac.id

Y q  Jika semua suku pada persamaan tsb dibagi


dengan ∆z ∆t, maka:

q(x) Δy + q(y ) Δx = q(x + Δx) Δy + q(y + Δy ) Δx


q(y)+q(y+∆y)
q  Pengelompokan suku dan perkalian dengan ∆x/
∆x atau ∆y/∆y menghasilkan:
q(x) q(x)+q(x+∆x) ∆y
q(x ) − q(x + Δx ) q(y ) − q(y + Δy )
ΔxΔy + ΔyΔx = 0
q(y) Δx Δy

X
∆x
Persamaan Laplace
12 http://istiarto.staff.ugm.ac.id

Y q  Pembagian dengan ∆x ∆y menghasilkan:


q(x ) − q(x + Δx ) q(y ) − q(y + Δy )
+ =0
Δx Δy
q(y)+q(y+∆y)
q  Mengambil nilai limit persamaan tsb dan
memperhatikan definisi diferensial parsial, maka
q(x) q(x)+q(x+∆x) ∆y diperoleh:
∂q ∂q
q(y) − − = 0 (persamaan konservasi energi)
∂x ∂y
X
∆x
Persamaan Laplace
13 http://istiarto.staff.ugm.ac.id

Y ∂q ∂q
− − =0
∂x ∂y
q  Penyelesaian PDE tsb membutuhkan syarat batas
q(y)+q(y+∆y) fluks panas q; padahal syarat batas yang
diketahui adalah temperatur T.
q  Oleh karena itu, PDE di atas diubah menjadi PDE
q(x) q(x)+q(x+∆x) ∆y
dalam T dengan menerapkan Hukum Fourier
untuk konduksi panas.
q(y) ∂T
q i = −k ρ C (Fourier’s law of heat conduction)
∂i
X ∂T
∆x = −kʹ′
∂i
Persamaan Laplace
14 http://istiarto.staff.ugm.ac.id

Y ∂T ∂T
q i = −k ρ C = −kʹ′
∂i ∂i
qi : fluks panas arah i (kal/cm2/s)
q(y)+q(y+∆y) k : koefisien difusi thermal (cm2/s)
ρ : rapat massa medium (g/cm3)
C : kapasitas panas medium (kal/g/°C)
q(x) q(x)+q(x+∆x) ∆y
T : temperatur (°C)
k´ : konduktivitas thermal (kal/s/cm/°C)
q(y)
q  Persamaan di atas menunjukkan bahwa fluks
X panas tegak lurus sumbu i sebanding dengan
∆x gradien/slope temperatur pada arah i.
Persamaan Laplace
15 http://istiarto.staff.ugm.ac.id

Y q  Dengan memakai Fick’s Law, maka persamaan


konservasi energi dapat dituliskan sbb.
∂2T ∂2T
2
+ 2 =0 (Persamaan Laplace)
q(y)+q(y+∆y) ∂x ∂y

q(x) q(x)+q(x+∆x) ∆y
q  Jika ada source atau sink:
∂2T ∂2T
+ = f (x, y ) (Persamaan Poisson)
q(y) ∂x2 ∂y 2

X
∆x
Persamaan Laplace
16 http://istiarto.staff.ugm.ac.id

Y q  Persamaan tsb sama dengan persamaan aliran


melalui medium porus (Hukum Darcy).
∂H
q i = −K
q(y)+q(y+∆y) ∂i
qi : debit aliran arah i (m3/m/s)
q(x) q(x)+q(x+∆x) ∆y K : konduktivitas hidraulik (m2/s)
H : tinggi energi hidraulik (m)
q(y) i : panjang lintasan, panjang aliran (m)

∂2H ∂2H
X 2
+ 2 =0
∆x ∂x ∂y
Teknik Penyelesaian Persamaan Laplace
17 http://istiarto.staff.ugm.ac.id

q  Penyelesaian persamaan Laplace, dan berbagai PDE di bidang enjiniring,


hampir tidak pernah dilakukan secara analitis, kecuali untuk kasus-kasus
yang sederhana.
q  Penyelesaian hampir selalu dilakukan dengan cara numeris.
q  Teknik penyelesaian PDE secara numeris
q  Metode beda hingga (finite difference approximation, FDA)
q  Metode elemen hingga (finite element method, FEM)
q  Metode volume hingga (finite volume method, FVM)
Finite Difference Approach – FDA
18 http://istiarto.staff.ugm.ac.id

Y q  Langkah pertama dalam FDA


∆x q  Domain fisik plat persegi dibagi menjadi
4 sejumlah pias atau grid titik-titik diskrit.
q  PDE Laplace diubah menjadi persamaan beda
3
hingga di setiap titik hitung (i,j).
q  Di titik hitung interior (simbol bulat hitam):
2
∆y ∂ 2T Ti +1, j − 2Ti , j + Ti −1, j §  diferensi tengah

1 ∂x 2 Δx 2 (central difference)
∂ 2T Ti , j +1 − 2Ti , j + Ti , j −1 §  error = O[(∆x)2] &
0 X 2
≈ §  error = O[(∆y)2]
∂y Δy 2
0 1 2 3 4
Finite Difference Approach – FDA
19 http://istiarto.staff.ugm.ac.id

Y q  Persamaan Laplace dalam bentuk beda hingga:


∆x Ti +1, j − 2Ti , j + Ti −1, j Ti , j +1 − 2Ti , j + Ti , j −1
4 2
+ 2
=0
Δx Δy
3 q  Jika ukuran grid seragam, ∆x = ∆y, maka:

2 Ti +1, j + Ti −1, j + Ti , j +1 + Ti , j −1 − 4Ti , j = 0


∆y
1

0 X
0 1 2 3 4
Finite Difference Approach – FDA
20 http://istiarto.staff.ugm.ac.id

Y q  Di titik-titik yang berada di batas domain (simbol


100°C bulat putih), berlaku syarat batas (boundary
4 conditions) à temperatur diketahui/ditetapkan.
q  BC semacam itu dikenal dengan nama Dirichlet
3
boundary condition.
75°C

2 50°C q  Di titik (1,1):


T2,1 + T0 ,1 + T1,2 + T1, 0 − 4T1,1 = 0
1 − 4T1,1 + T1,2 + T2,1 = −75 − 0
q  Di 8 titik interior yang lain pun dapat dituliskan
0 X
0 1 2 3 4 persamaan beda hingga diskrit semacam di atas.
0°C
Finite Difference Approach – FDA
21 http://istiarto.staff.ugm.ac.id

Y q  Dari 9 titik interior diperoleh sistem persamaan


100°C aljabar linear yang terdiri dari 9 persamaan dengan
4 9 unknowns.

3
75°C

2 50°C

0 X
0 1 2 3 4
0°C
Teknik Penyelesaian Persamaan Laplace
22 http://istiarto.staff.ugm.ac.id

q  9 persamaan dengan 9 unknowns:


1) − 4T1,1 + T2,1 + T1, 2 = − 75
2) T1,1 − 4T2,1 + T3 ,1 + T2, 2 = 0
3) T2,1 − 4T3 ,1 + T3 , 2 = − 50
4) T1,1 − 4T1, 2 + T2, 2 + T1, 3 = − 75
5) T2,1 + T1, 2 − 4T2, 2 + T3 , 2 + T2 ,3 = 0
6) T3 ,1 + T2, 2 − 4T3 , 2 + T3, 3 = − 50
7) T1, 2 − 4T1, 3 + T2 ,3 = − 175
8) T2, 2 + T1, 3 − 4T2 ,3 + T3, 3 = − 100
9) T3 , 2 + T2 ,3 − 4T3, 3 = − 150
Teknik Penyelesaian Persamaan Laplace
23 http://istiarto.staff.ugm.ac.id

q  9 persamaan dengan 9 unknowns dalam bentuk matriks


⎡− 4 1 0 1 0 0 0 0 0⎤ ⎧ T1,1 ⎫ ⎧ − 75 ⎫
⎢ 1 − 4 ⎥ ⎪T ⎪ ⎪ ⎪
⎢ 1 0 1 0 0 0 0 ⎥ 2
⎪ ⎪ ⎪,1 0 ⎪
⎢ 0 1 −4 0 0 1 0 0 0⎥ ⎪T3,1 ⎪ ⎪ − 50 ⎪
⎢ ⎥ ⎪ ⎪ ⎪ ⎪
⎢ 1 0 0 − 4 1 0 1 0 0 ⎥ T
⎪ 1, 2 ⎪ ⎪ − 75 ⎪
⎪ ⎪ ⎪ ⎪
⎢ 0 1 0 1 −4 1 0 1 0⎥ ⎨T2, 2 ⎬ = ⎨ 0 ⎬
⎢ ⎥ ⎪T ⎪ ⎪ − 50 ⎪
⎢ 0 0 1 0 1 −4 0 0 1⎥
⎪ 3, 2 ⎪ ⎪ ⎪
⎢ 0 0 0 1 0 0 −4 1 0⎥ ⎪T1, 3 ⎪ ⎪− 175⎪
⎢ ⎥ ⎪T ⎪ ⎪ ⎪
⎢ 0 0 0 0 1 0 1 −4 1⎥ 2 ,
⎪ ⎪ ⎪ 3 − 100 ⎪
⎢ 0 0 0 0 0 1 0 1 − 4⎥⎦ ⎪⎩T3, 3 ⎪⎭ ⎪⎩− 150⎪⎭
⎣
Teknik Penyelesaian Persamaan Laplace
24 http://istiarto.staff.ugm.ac.id

q  Sistem persamaan aljabar yang dihasilkan dari penerapan persamaan


beda hingga di semua titik interior
q  diselesaikan dengan salah satu Metode yang telah dibahas pada kuliah sebelum
UTS
q  untuk 9 persamaan, penyelesaian masih dapat dilakukan dengan mudah memakai
cara tabulasi spreadsheet
q  untuk jumlah persamaan yang banyak, seperti biasa ditemui dalam permasalahan
civil engineering, perlu bantuan program komputer
n  MatLab (program aplikasi berbayar)
n  SciLab (mirip MatLab, program aplikasi open source, platform Windows, MacOS, Linux)
n  Numerical Recipes
n  Etc. (dapat dicari di internet)
Teknik Penyelesaian Persamaan Laplace
25 http://istiarto.staff.ugm.ac.id

q  Metode iteratif: Gauss-Seidel iteration method


Ti +1. j + Ti −1. j + Ti . j +1 + Ti . j −1 T +T +T +T
Ti . j = atau Ti . j = i . j −1 i −1. j i +1. j i . j +1
4 4
q  Dipakai SOR (Successive Over Relaxation) method untuk mempercepat
konvergensi

Ti(. nj +1) = λ Ti n, j+1 + (1− λ )Ti n, j 1< λ < 2


q  Kriteria konvergensi
Ti (, nj +1) − Ti n, j hitungan dilakukan
max εi , j = max < 1% dengan bantuan
Ti (, nj +1) tabulasi spreadsheet
Teknik Penyelesaian Persamaan Laplace
26 http://istiarto.staff.ugm.ac.id

iterasi, n T1,1 T2,1 T3,1 T1,2 T2,2 T3,2 T1,3 T2,3 T3,3 ∆Tmax
0 0 0 0 0 0 0 0 0 0 ---
1 28.1250 10.5469 22.7051 38.6719 18.4570 34.1858 80.1270 74.4690 96.9955 100.0%
2 32.5195 22.3572 28.6011 55.8311 60.8377 71.5700 74.4241 87.3620 67.3517 69.7%
3 41.1859 37.8056 45.4653 71.2290 70.0686 51.5471 87.8846 78.3084 71.2700 40.9%
4 48.4201 42.5799 31.3150 66.3094 54.4950 51.8814 75.9144 73.9756 67.8114 45.2%
5 44.7485 27.6695 32.9241 59.9274 52.7977 50.3842 77.8814 74.9462 69.3432 53.9%
6 38.5996 32.7858 33.4767 60.5401 55.5973 52.9643 77.4916 75.9389 69.9171 15.9%
7 43.8224 33.4432 34.4145 63.6144 56.9367 52.7435 79.2117 76.8051 69.8722 11.9%
8 42.6104 33.5140 33.8893 62.4499 56.0988 52.3259 78.2398 75.6765 69.3148 2.8%
9 42.8062 33.0409 33.8179 62.3681 55.7299 52.1605 78.2718 75.9054 69.6173 1.4%
10 42.5003 32.9976 33.7753 62.2418 55.8746 52.3950 78.2943 75.9671 69.5771 0.7%
Teknik Penyelesaian Persamaan Laplace
27 http://istiarto.staff.ugm.ac.id

Y 100
T°C j=3
80
100°C j=2
4 60
40 j=1

3 78.29 75.96 69.57 20


i
0
75°C

50°C
0 1 2 3 4
2 62.24 55.87 52.39 100
T°C i=2
80
1 42.50 32.99 33.77 i=1
60
40 i=3
0 X 20
0 1 2 3 4 j
0
0°C 0 1 2 3 4

Anda mungkin juga menyukai