Anda di halaman 1dari 24

 Pendahuluan

 Akar Persamaan
 Sistem Persamaan Linear
 Regresi dan Interpolasi
 Integrasi Numerik
 Persamaan Diferensial Biasa
 Persamaan Diferensial Parsiil
PROBLEM:
Persamaan Kecepatan jatuh: jika diketahui kecepatan pada
A waktu tertentu, berapa coefisien Drag-nya?

U (t ) 
gm
CD

1  e ( C D / m ) t  f (C D ) 
gm
CD
 
1  e (CD / m )t  U (t )  0

B Momen pada Struktur Balok


q=10 kN/m1 P=30 kN Tentukan lokasi
pada batang balok
B
dimana momennya
A
x C sebesar
M = 20 kN.m
a =7 m b=2m

RA RB
C Difleksi pada Beam

Dimana difleksi maksimum?


Defleksi :
y
wo
120 EIL

 x5  2L2 x3  L4 x 

Defleksi maksimum? dy

wo
dx 120 EIL
 
 5x 4  6L2 x 2  L4  0
D Aliran pd sal. Terbuka

Suatu saluran irigasi didesain untuk melewatkan debit


sebesar 15 m3/dt. Saluran dirancang mempunyai lebar B = 6
m, kemiringan dasar saluran So=0.001dan kekasaran
dinding dan dasar saluran n = 0.025. Jika kemiringan kedua
tebing saluran m = 1, akan dicari kedalaman aliran seragam
yang lewat saluran irigasi tersebut.

m m

h 1
1

B
3

5  Qn  
 2
2
[(B  mh)h]  B  2h 1  m   0
 S 1/ 2   
 o 
E Panjang Turap
Suatu turap baja direncanakan untuk perlindungan tebing setinggi H. Diketahui
data tanah tebing maupun tanah dasar berupa pasir dengan sudut geser dalam
tanah, j. Tanah yang dilindungi terdiri dari 2 lapis yang mempunyai 2 macam
berat volume, g1 dan g2. Akan dikaji berapa panjang pemancangan turap baja yang
diperlukan untuk perlindungan tebing tersebut.

g1
H
FA1

g1

g2
gg22 K A  tan 2  45  j 
FA

FA2
D  2

K P  tan 2  45  j 
Fg A3
2
FP
 2
A
F Kehilangan Energi pada Pipa
Suatu pipa dengan diameter D = 10 inch, panjang
L=1000 m, serta kekasaran dinding pipa k=0,02 mm,
melewatkan debit air sebesar Q = 200 lt/dt. Hitung
kehilangan energi yang terjadi pada pipa tersebut.
L V2
hf  f
D 2g

1  k 2,51 
 2 log   
 
f  3,7  D Re f 

 k  1
g  f   2 log  2,51 
 0
 3,7  D Re f  f
 
If (fx1 * fxt) < 0 Then
Sub Setengah Interval2() x2 = xt
Dim a4, b4, c4, a3, b3, c3 As Variant Else
Dim a2, b2, c2, b, c As Variant x1 = xt
Dim x1, x2, xt, fx1, fx2, fxt, x, f, xa As Variant End If
Dim i, n As Integer Else
a4 = Cells(3, 1) Cells(8 + i, 8) = "No "
b4 = Cells(3, 2) End If
c4 = Cells(3, 3) Call fx(a4, b4, c4, a3, b3, c3, a2, b2, c2, b, c, x1, fx1)
a3 = Cells(3, 4) Call fx(a4, b4, c4, a3, b3, c3, a2, b2, c2, b, c, x2, fx2)
b3 = Cells(3, 5) Cells(8 + i, 1) = i
c3 = Cells(3, 6) Cells(8 + i, 2) = x1
a2 = Cells(5, 1) Cells(8 + i, 3) = x2
b2 = Cells(5, 2) Cells(8 + i, 4) = fx1
c2 = Cells(5, 3) Cells(8 + i, 5) = fx2
b = Cells(5, 4) If xa <> 0 Then
c = Cells(5, 5) lim = (xt - xa) / xa
x1 = Cells(6, 4) Else
x2 = Cells(6, 5) lim = (xt - xa) / xt
Range("A8:h41") = " " End If
xa = x1 Cells(8 + i, 7) = lim
i=1 If Abs(lim) > 0.0001 Then
Cells(8, 1) = i xa = xt
Cells(8, 2) = x1 Else
Cells(8, 3) = x2 Exit Do
Call fx(a4, b4, c4, a3, b3, c3, a2, b2, c2, b, c, x1, fx1) End If
Call fx(a4, b4, c4, a3, b3, c3, a2, b2, c2, b, c, x2, fx2) i=i+1
Cells(8, 4) = fx1 Loop
Cells(8, 5) = fx2 End Sub
Do While i < 30
If (fx1 * fx2) < 0 Then Sub fx(a4, b4, c4, a3, b3, c3, a2, b2, c2, b, c, x, f)
xt = 0.5 * (x1 + x2) f = a4 * (b4 * x + c4) ^ 4 + a3 * (b3 * x + c3) ^ 3 _
Cells(8 + i, 6) = xt + a2 * (b2 * x + c2) ^ 2 + b * x + c
Call fx(a4, b4, c4, a3, b3, c3, a2, b2, c2, b, c, xt, fxt) End Sub
Cells(i + 5, 1) = i
Cells(i + 5, 2) = x1
Cells(i + 5, 3) = x2
Sub setin() Cells(i + 5, 4) = fx1
Dim x1, x2, fx1, fx2, xt, fxt, xa, e As Variant Cells(i + 5, 5) = fx2
Dim i As Integer Cells(i + 5, 6) = xt
Cells(i + 5, 7) = fxt
x1 = Cells(2, 1)
x2 = Cells(2, 2) If (fxt * fx1) < 0 Then
Cells(5, 1) = "i" x2 = xt
Cells(5, 2) = "x1" Else
Cells(5, 3) = "x2" x1 = xt
Cells(5, 4) = "f(x1)" End If
Cells(5, 5) = "f(x2)" If i > 1 Then
Cells(5, 6) = "xt" e = (xt - xa) / xa * 100
Cells(5, 7) = "f(xt)" Else
Cells(5, 8) = "e" e = 1000
End If
i=1 Cells(i + 5, 8) = e
Range("a6:h30") = " " If Abs(e) < 0.01 Then
Do While i < 30 Exit Do
End If
Call fx(x1, fx1)
Call fx(x2, fx2) xa = xt
If (fx1 * fx2) < 0 Then i=i+1
Cells(2, 3) = "tanda kedua fungsi berlawanan, Metode Setengah Loop
Iteral bisa dilanjutkan" End Sub
xt = 0.5 * (x1 + x2)
Call fx(xt, fxt) Sub fx(x1, fx1)
Else Dim al As Variant
Cells(2, 3) = "tanda kedua fungsi sama, ganti salah satu variabel" al = 10#
End If fx1 = -5 * x1 ^ 4 + 6 * al ^ 2 * x1 ^ 2 - al ^ 4
End Sub
Sub NRaphson2()
Dim x1, fx1, fax1, xt, fxt, e, xta As Variant
Dim i, n As Integer
x1 = Cells(1, 2) If Abs(e) < 0.1 Then
Cells(3, 1) = "i" Exit Do
Cells(3, 2) = "x1" Else
Cells(3, 3) = "f(x1)" x1 = xt
Cells(3, 4) = "f'(x1)" End If
Cells(3, 5) = "xt" i=i+1
Cells(3, 6) = "f(xt)" Loop
Cells(3, 7) = "error" End Sub
i=1
Range("A4:g35") = " " Sub fx(x1, fx1)
Do While i < 30 Dim al As Variant
Cells(i + 3, 1) = i al = 10#
Cells(i + 3, 2) = x1 fx1 = -5 * x1 ^ 4 + 6 * al ^ 2 * x1 ^ 2 - al ^ 4
Call fx(x1, fx1) End Sub
Call fax(x1, fax1) Sub fax(x1, fax1)
xt = x1 - fx1 / fax1 Dim al As Variant
Call fx(xt, fxt) al = 10#
Cells(i + 3, 3) = fx1 fax1 = -20 * x1 ^ 3 + 12 * al ^ 2 * x1
Cells(i + 3, 4) = fax1 End Sub
Cells(i + 3, 5) = xt
Cells(i + 3, 6) = fxt
If i > 1 Then
e = (xt - x1) / x1 * 100
Else
e = 1000
End If
Cells(i + 3, 7) = e
xt  xi f ( xi )

xi 1  xi f ( xi )  f ( xi 1 )

xt  xi 
f ( xi )
xi 1  xi 
f ( xi )  f ( xi 1 )
f ( xi )
f ' ( xi )  tan( ) 
xi  xi1

f ( xi )
xi 1  xi 
f ' ( xi )
f ( xi )  f ( xi 1 )
f ' ( xi ) 
xi  xi 1

f ( xi )( xi  xi1 )
xi1  xi 
f ( xi )  f ( xi 1 )
dy
dx
 
  5x 4  6L2 x 2  L4  0  5 x 4  6 L2 x 2  L4  0

1
 6 L xi  L
2

4
5 xi  L4
2 4 4
xi 1   
 xi 1 
 5  6 L2
Persamaan Poisson:

 z  z
2
q2
 2 
x 2
y s
Q=uniform lateral pressure
s = tensile force/unit length

Kondisi batas:z=0
•Aplikasi Diskretisasi numerik ke
j persamaan poisson
•Aplikasi persamaan diskret ke
6y titik-titik grid

•Terbentuk Sistem Persamaan


Linear
•Penyelesaian?
i
6x
 z  z
2
q 2
j
 2 
6y
x 2
y s
zi 1, j  2 zi , j  zi 1, j zi , j 1  2 zi , j  zi , j 1 q
 
i
6x
x 2
y 2 s

dengan x  y

q
zi 1, j   zi 1, j  zi , j 1  zi , j 1  4 zi , j   xy
s
n1 n 1 n 1
 Cin
 (   )Ci 1  (1  2 )Ci  (   )Ci 1