Professional Documents
Culture Documents
The standard Crank-Nicolson scheme is given by θ = 0.5 with order O(∆t2 ); the explicit and
implict Euler schemes are obtained with θ = 0 and θ = 1, respectively.
Standard Runge-Kutta scheme (RK4), order O(∆t4 ):
∆t n
un+1 = un + (f + 2k1 + 2k2 + k3 ) (5)
6
∆t n 1 1 ∆t
with : u1 = un + f , k1 = f (u1 , tn+ 2 ), tn+ 2 = tn + (6)
2 2
n ∆t n+ 12
u2 = u + k1 , k2 = f (u2 , t ) (7)
2
u3 = un + ∆tk2 , k3 = f (u3 , tn+1 ) (8)
1
Central finite differece scheme second order:
∆x2 ∂ 3 u
∂u ui+1 − ui−1
= − + ... (13)
∂x xi 2∆x 6 ∂x3 xi
Central finite differece scheme fourth order:
∆x4 ∂ 5 u
∂u −ui+2 + 8ui+1 − 8ui−1 + ui−2
= + + ... (14)
∂x xi 12∆x 30 ∂x5 xi