Professional Documents
Culture Documents
Time-stepping techniques
time
Initial-boundary value problem u = u(x, t)
future
zone of influence
∂u
present
∂t + Lu = f in Ω × (0, T ) time-dependent PDE
domain of
past dependence Bu = 0 on Γ × (0, T ) boundary conditions
u = u0 in Ω at t = 0 initial condition
space
JetWings 1
Lecture # 03 CFD Techniques and Properties of Numerical Solution
Space-time discretization
The space and time variables are essentially decoupled and can be discretized
independently to obtain a sequence of (nonlinear) algebraic systems
JetWings 2
Lecture # 03 CFD Techniques and Properties of Numerical Solution
JetWings 3
Lecture # 03 CFD Techniques and Properties of Numerical Solution
JetWings 4
Lecture # 03 CFD Techniques and Properties of Numerical Solution
JetWings 5
Lecture # 03 CFD Techniques and Properties of Numerical Solution
Adams methods
Derivation: polynomial fitting f
past present future
Truncation error: ǫglob
τ = O(∆t)p
for polynomials of degree p − 1 which
interpolate function values at p points
t
tn 2 tn 1 tn tn+1
Adams-Bashforth methods (explicit)
p=1 un+1 = un + ∆tf (tn , un ) forward Euler
∆t
p=2 un+1 = un + n n
2 [3f (t , u ) − f (tn−1 , un−1 )]
∆t
p=3 un+1 = un + n n
12 [23f (t , u ) − 16f (tn−1 , un−1 ) + 5f (tn−2 , un−2 )]
JetWings 6
Lecture # 03 CFD Techniques and Properties of Numerical Solution
Adams methods
Predictor-corrector algorithm
1. Compute ũn+1 using an Adams-Bashforth method of order p − 1
2. Compute un+1 using an Adams-Moulton method of order p with
predicted value f (tn+1 , ũn+1 ) instead of f (tn+1 , un+1 )
JetWings 7
Lecture # 03 CFD Techniques and Properties of Numerical Solution
Runge-Kutta methods
∆t
p=2 ũn+1/2 = un + n n
2 f (t , u ) forward Euler / predictor
∆t
p=4 ũn+1/2 = un + n n
2 f (t , u ) forward Euler / predictor
∆t
ûn+1/2 = un + 2 f (t
n+1/2
, ũn+1/2 ) backward Euler / corrector
JetWings 8
Lecture # 03 CFD Techniques and Properties of Numerical Solution
General comments
Explicit methods: use the largest time step satisfying the stability condition
Implicit methods: estimate the error and adjust the time step if necessary
JetWings 9
Lecture # 03 CFD Techniques and Properties of Numerical Solution
Lax-Wendroff time-stepping
∂u
Consider a time-dependent PDE ∂t + Lu = 0 in Ω × (0, T )
n+1 n n (∆t)2 2 n
u = u − ∆tLu + L u + O(∆t)3
2
4. Perform space discretization using finite differences/volumes/elements
JetWings 10
Lecture # 03 CFD Techniques and Properties of Numerical Solution
∂ ∂u ∂2u 2
Time derivatives L = v ∂x ⇒ ∂t = −v ∂u
∂x , ∂t2 = v 2 ∂∂xu2
n
∂u n (v∆t)2 2
∂ u
Semi-discrete scheme un+1 = un − v∆t ∂x + 2 ∂x2 + O(∆t)3
un+1
i − uni uni+1 − uni−1 v 2 ∆t uni+1 − 2uni + uni−1 2 2
+v = + O[(∆t) , (∆x) ]
∆t 2∆x 2 (∆x)2
JetWings 11
Lecture # 03 CFD Techniques and Properties of Numerical Solution
These properties must be verified for each (component of the) numerical scheme
JetWings 12
Lecture # 03 CFD Techniques and Properties of Numerical Solution
Consistency
Truncation errors should vanish as the mesh size and time step tend to zero
∂u
Example. Pure convection equation ∂t + v ∂u
∂x = 0 discretized by
un+1 −un un n
i+1 −ui−1
n
∂u
Hence, i
∆t
i
+ v 2∆x + v ∂u
− ∂x i + ǫτ = 0
∂t where
n n
∆t ∂ 2 u (∆x)2 ∂ 3 u
ǫτ = − 2
−v 3
+ O[(∆t)2 , (∆x)4 ]
2 ∂t i 6 ∂x i
residual of the difference scheme for the exact nodal values um
j = u(j∆x, m∆t)
JetWings 13
Lecture # 03 CFD Techniques and Properties of Numerical Solution
Stability
Stability analysis: can only be performed for a very limited range problems
JetWings 14
Lecture # 03 CFD Techniques and Properties of Numerical Solution
Convergence
JetWings 15
Lecture # 03 CFD Techniques and Properties of Numerical Solution
Conservation
JetWings 16
Lecture # 03 CFD Techniques and Properties of Numerical Solution
Boundedness
1 1
low-order →
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
0
← high-order 0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Idea: make sure that important properties of the exact solution (monotonicity,
positivity, nonincreasing total variation) are inherited by the numerical one
JetWings 17
Lecture # 03 CFD Techniques and Properties of Numerical Solution
• Expand all nodal values in the difference scheme in a double Taylor series
about a single point (xi , tn ) of the space-time mesh to obtain a PDE
• Express high-order time derivatives as well as mixed derivatives in terms
of space derivatives using this PDE to transform it into the desired form
JetWings 18