Professional Documents
Culture Documents
Convergence means that as ∆x and ∆t approach to As the numerical solution of a partial differential equation
zero, the result of the finite- difference technique is influenced by two sources of Error.
approach the true solution.
1.Discretization error
Stability means that errors at any stage of the
computation are not amplified as the computation 2.Round-off error
progresses.
Discretization error : The difference between the exact
Stability behavior of numerical solutions were raised analytical solution of the partial differential equation and
in Explicit method, as if the increment in the marching exact solution ( round-off free) of the corresponding
direction exceeded some prescribed value then this difference equation .
method becomes numerically unstable.
Discretization error = Truncation error + the error
The maximum allowable value comes from a stability introduced at boundary condition.
analysis.So use approximate stability analysis as the
exact stability of nonlinear Euler and Navier stokes Discretization error = A – D
does not exit.
where A = exact analytical solution of the partial
differential equation
D= exact solution ( round-off free) of the
corresponding difference equation .
14-04-2022 1
Convergence and stability analysis
Round-off error : The Numerical error introduced after a As the solution progress if the present error at some
repetitive number of calculation in which the computer is stage is grow then the solution will be Un-stable.
constantly rounding the numbers to significant figures.
in1
Round-off error = ε = N – D 1
i n
We can write N= ε + D
14-04-2022 2
Convergence and stability analysis
( x) Ameik mx
m
Here Km is a wave number
14-04-2022 3
Convergence and stability analysis
N /2
( x)
m 1
Am e jk mix
2 2 N
km . N /2
2L / N L 2 m ( x, t )
m 1
e at e jk mix
14-04-2022 4
Convergence and stability analysis
Von Neumann stability analysis
We know numerical solution, N= ε + D
u 2u
1. Consider the diffusion equation given by . 2 Where D is exact solution ( round-off free) of the
t x
Use Von Neumann stability analysis to determine corresponding difference equation
the stability requirements if the Explicit scheme is
used to discretize the given diffusion equation. So N and D must satisfy the given equation 1.
14-04-2022 5
Convergence and stability analysis
From equation 4 by dividing i on both sides and 5
n
Using Fourier series expansion
N /2 G 1
e jK m x 2 e jK m x
m ( x, t ) e at jk m ix t x
2
e
m 1 Also we know that,
∅
If ‘a’ is positive error will increase. 𝐺 = 1 − 4 𝛼 ′ 𝑠𝑖𝑛2
2
The condition of stability will be 𝐺 ≤ 1
′ 2
∅ This always satisfies for all 𝛼 ′
1 − 4 𝛼 𝑠𝑖𝑛 ≤1
14-04-2022 2 6
Convergence and stability analysis
u u
2. Consider the wave equation given by B. 0
So this gives conditional stability t x
𝐶 −𝑗∅
𝐺 − 1 + 2 𝐺 𝑒 𝑗∅ + 𝑒 −𝑒 =0 Eqn. 10 shows that G will be always less than 1 only at ∅ = 0
𝑖𝑡 𝑖𝑠 𝑒𝑞𝑢𝑎𝑙 𝑡𝑜 1.
Also 𝑒 𝑗∅ = Cos∅ + 𝑆𝑖𝑛∅
𝑒 −𝑗∅ =Cos∅ − 𝑆𝑖𝑛∅ So this formulation of wave number is always stable.
𝐶 −𝑗∅
𝐺 − 1 + 2 𝐺 𝑒 𝑗∅ + 𝑒 −𝑒 =0
3. Consider the wave equation given by
1
𝐺 = 1+𝑗𝐶𝑠𝑖𝑛∅ --------- Eqn. 9
Assume 0 ≤ 𝑥 ≤ 𝐿 with uniform ∆𝑥 𝑎𝑛𝑑 𝐷 = 𝑐𝑜𝑛𝑠𝑡𝑎𝑛𝑡.
Do some Mathematical operations to simplify Eqn. 9 Use Von Neumann stability analysis to determine
1 1−𝑗𝐶𝑠𝑖𝑛∅ the stability requirements if the Explicit scheme is
𝐺 = 1+𝑗𝐶𝑠𝑖𝑛∅ 1−𝑗𝐶𝑠𝑖𝑛∅
used to discretize the given wave equation.
1−𝑗𝐶𝑠𝑖𝑛∅ ∗ 1+𝑗𝐶𝑠𝑖𝑛∅
uin 1 uin uin1 uin1
𝐺 = 1+𝐶2𝑠𝑖𝑛2∅ And its complex conjugate 𝐺 = 1+𝐶2𝑠𝑖𝑛2∅ B 0 Eqn.1
t 2x
1−𝑗𝐶𝑠𝑖𝑛∅ 1+𝑗𝐶𝑠𝑖𝑛∅ 1+𝐶2𝑠𝑖𝑛2∅ 1
𝐺 =GX
2 G* == 𝑋
1+𝐶2𝑠𝑖𝑛2∅ 1+𝐶2𝑠𝑖𝑛2∅
= (1+𝐶2𝑠𝑖𝑛2∅)2
= 1+𝐶2𝑠𝑖𝑛2∅ Then we will get
∗
𝐺 = 1 − 𝑗𝐶𝑠𝑖𝑛∅ 𝑎𝑛𝑑 𝐺 = 1 + 𝑗𝐶𝑠𝑖𝑛∅
15-04-2022 9
Convergence and stability analysis
𝐺 2 = G X G* = 1 + 𝐶2𝑠𝑖𝑛2∅ ≥ 1
u 2u
4. Consider the diffusion equation given by . 2
t x
Use Von Neumann stability analysis to determine
the stability requirements if the Implicit scheme is
used to discretize the given diffusion equation.
15-04-2022 10
Convergence and stability analysis
14-04-2022 11
Convergence and stability analysis
14-04-2022 12
Convergence and stability analysis
14-04-2022 13