You are on page 1of 2

Diskretisasi (Full Version)

Descretization (using finite difference)

The descretization of differential equation of the infiltration of rainfall into the OBS
∂ ∂Ψ ∂Ψ
∂z [ (
Kz (Ψ )
∂z
+1 =C w
∂t )] (Eq. 1)

∂2 Ψ (K ¿ ¿ z (Ψ )) ∂Ψ
K z (Ψ ) 2
+∂ =C w ¿ (Eq. 1a)
∂z ∂ z ∂t

∂K
The hydraulic conductivity is assumed constant sothe unit =0
∂z

Meanwhile the others are descreted as follows :

∂Ψ Ψ n+1−Ψ n (forward difference) (Eq. 2)


=
∂t ∆t

∂ Ψ Ψ i +1−2 Ψ i +Ψ i−1
2
= (central difference) (Eq. 3)
∂ z2 ∆ z2

By substituting Eq. 2 and Eq. 3 to Eq. 1a, we obtain this following equation :

Ψ i +1−2Ψ i+ Ψ i−1 Ψ n+1−Ψ n


K ( ∆z 2 ) ( =C w
∆t )
∆ t Ψ i+1−2 Ψ i +Ψ i−1
K
Cw ( ∆ z2
=Ψ n+1−Ψ n )
∆ t Ψ i+1−2 Ψ i +Ψ i−1
Ψ n +1=Ψ n + K
Cw ( ∆ z2 )
Now adding the scripts to complete the descritization :

∆t Ψ −2 Ψ n ,i +Ψ n ,i−1
Ψ n +1 ,i=Ψ n ,i + K
Cw (
( Ψ ) n , i+1
∆ z2 ) (Eq. 4)

The descretization of differential equation of the oxygen diffusion into the OBS
∂2 C 1 ∂C
= (Eq. 5)
∂ z 2 D ∂t

Like the previous section, Eq. 5 is descretized as follow:

∂2 C C i+1 −2C i +Ci−1


= (central difference) (Eq. 6)
∂ z2 ∆ z2

∂C Cn +1−C n (forward difference) (Eq. 7)


=
∂t ∆t

By substituting Eq. 6 and Eq. 7 to Eq. 5, we obtain this following equation :


Ci +1−2C i +Ci−1 1 C n +1−Cn
2
=
∆z D ∆t

C i+1 −2C i+ Ci−1


D∆t ( ∆ z2 )=Cn +1−Cn

C i+1−2 C i+C i−1


C n+1=C n + D ∆ t ( ∆ z2 )
Now adding the scripts to complete the descritization :

C n ,i+1−2 C n ,i +C n ,i−1
C n+1 ,i =Cn , i+ D ∆t ( ∆ z2 ) (Eq. 8)

You might also like