Professional Documents
Culture Documents
MATH5004-LEC2: Outline
MATH5004-LEC2: Outline
2010
MATH5004-LEC2
FDM: Consistency, stability, converence, and error estimates
OUTLINE
Global error
Local truncation error
Convergent method
Grid refinement analysis
Stencils for the 2D Laplacian
Example
B Wiwatanapataphee 8/16/2020
Curtin University is a trademark of Curtin University of Technology
CRICOS Provider Code 00301J
• The 1-norm is
• The 2-norm is
B Wiwatanapataphee 8/16/2020
Curtin University is a trademark of Curtin University of Technology
CRICOS Provider Code 00301J
Convergent Method
Definition A finite difference scheme is called consistent if
lim 𝑇 𝑥 = lim 𝐿𝑢 − 𝐿 𝑢 = 0
→ →
𝐴𝐄 = 𝐓
𝐴𝐄 = 𝐓
If A is non-singular, then
If A is singular, then
may be arbitrary large.
Definition
A FD method for the elliptic DE is stable if A is
invertible and
Theorem
A consistent and stable finite difference scheme is
convergent.
B Wiwatanapataphee 8/16/2020
Curtin University is a trademark of Curtin University of Technology
CRICOS Provider Code 00301J
B Wiwatanapataphee 8/16/2020
Curtin University is a trademark of Curtin University of Technology
CRICOS Provider Code 00301J
10
11
u = u1 +Chp . (1.1)
If mesh size h is reduced from h to h/2, then
u = u2 +C(h/2)p. (1.2)
where u2 is the approximation obtained with h/2.
12
2 p u2 - u1 (1.3)
u= p
.
2 - 1
For example, for p = 2,
4u2 - u1
u=
3
13
𝑢 = 𝑢 + 𝐶ℎ ,
𝑢 =𝑢 +𝐶 ℎ ,
𝑢 =𝑢 +𝐶 ℎ ,
14
15
Elliptic equations
In two space dimensions, a constant-coefficient elliptic
equation has the form
𝑎𝑢 + 𝑏𝑢 + 𝑐𝑢 + ℎ 𝑥, 𝑦, 𝑢, 𝑢 , 𝑢 = 𝑓(𝑥, 𝑦)
B Wiwatanapataphee 8/16/2020
Curtin University is a trademark of Curtin University of Technology
CRICOS Provider Code 00301J
16
B Wiwatanapataphee 8/16/2020
Curtin University is a trademark of Curtin University of Technology
CRICOS Provider Code 00301J
17
Let ∆𝑥 = ∆𝑦 = ℎ
𝑇(𝑥) = 𝐿𝑢 − 𝐿 𝑢
𝑢 , +𝑢 , +𝑢, +𝑢, − 4𝑢 .
= (𝑢 +𝑢 ) −
ℎ
1
𝑇 =𝑓 − 𝑢 . +𝑢 . +𝑢. +𝑢 . − 4𝑢 .
ℎ
1
𝑇 = ℎ 𝑢 +𝑢 + 𝑂(ℎ )
12
18
∇ 𝑢(𝑥 , 𝑦 )
∇ 𝑢(𝑥 , 𝑦 )
B Wiwatanapataphee 8/16/2020
Curtin University is a trademark of Curtin University of Technology
CRICOS Provider Code 00301J
19
Since
From DE ∇ 𝑢 = 𝑓, we have
B Wiwatanapataphee 8/16/2020
Curtin University is a trademark of Curtin University of Technology
CRICOS Provider Code 00301J
20
Example
Given
𝑢 +𝑢 =𝑥 𝑦 , 0 ≤ 𝑥, 𝑦 ≤ 𝜋
𝑢 0, 𝑦 = 0, 𝑢 𝜋, 𝑦 = 1
𝜕𝑢(𝑥, 0)
𝑢 𝑥, 𝜋 = 0, = 1.
𝜕𝑦
For 5 grid points in x-direction and 5-grid points in y-
direction,
B Wiwatanapataphee 8/16/2020
Curtin University is a trademark of Curtin University of Technology
CRICOS Provider Code 00301J
21