SLIDE 1
Scientific Computing I
Module 8: Discretisation of PDEs Michael Bader
Lehrstuhl Informatik V
Winter 2007/2008
The Model Problem
2D Poisson Equation on unit square: ∂ 2 ∂x2u(x,y)+ ∂ 2 ∂y2u(x,y) = f(x,y) in Ω = (0,1)2 Dirichlet boundary conditions: u(x,y) = g(x,y)
- n ∂Ω
Part I Finite Differences Grid Generation
generate a grid on the given domain
xi,j xi−1,j xi+1,j xi,j+1 xi,j−1 hx hy hx hz hy
Compute values of unknown function u at each grid point: uij ≈ u(xij) uijk ≈ u(xijk)
Finite Difference Discretisation
Replace derivatives (at each grid point) by difference quotients: ∂ 2u ∂x2 (xi,j) ≈ u(xi+1,j)−2u(xi,j)+u(xi−1,j) h2
x
∂ 2u ∂y2 (xi,j) ≈ u(xi,j+1)−2u(xi,j)+u(xi,j−1) h2
y
leads to linear system of equations (h := hx = hy):
1 h2
- ui+1,j +ui,j+1 −4ui,j
+ui,j−1 +ui−1,j
- =
f(xi,j) xi,j ∈ (0,1)2 u(xi,j) = g(xi,j) xi,j ∈ ∂Ω
System of Linear Equations
- bjective: write linear system in matrix-vector-form: