Lecture4 Discretization Technique
Lecture4 Discretization Technique
COMPUTATIONAL AERODYNAMICS
Farfield boundary
Grids /
Mesh
Page 1
Computational Modelling
Space
Steadiness Dynamic
approximation approximation discretization
Mesh definition
Spatial
approximation Equation
discretization
Definition of
Numerical schemes
Page 2
Computational Solution Procedure
GE
Governing
BC PDE and BC’s
f
f
Discretization
Consistency
x x Stability
Discretized Convergence
Equations
explicit
implicit Equation Solver
Approximate Solution
T(x,y,z,t), etc
Page 3
Review of Mathematical Models
2. Linear diffusion
(heat conduction)
5. Wave
and g is ratio of specific
heats
Page 4
Boundary Conditions
Wall Temperature
Page 5
Meanings of Discretization
Space discretization
Laplace Equation
Page 6
Road Map
Discretization Approaches
Basic derivations
of finite difference
equations
Discretization Techniques
Page 8
Finite Differences : Taylor Series
First Derivative
f (x)
f f (x) ≈ f (x0 + D x ) = f (x0) First guess (not very good)
? 4
x 5 f (x)
2 + add to capture slope
Dx ui 1, j ui , j
= -
Dx
Page 9
First-order forward difference
Finite Differences : Taylor Series
First Derivative
f (x)
df
? f (x) ≈ f (x0 - D x ) = f (x0)
dx 5 f (x)
2 -
1 4
x0 - D x x0 x0 + D x x
-
ui , j ui 1, j
= +
Dx
Page 10
First-order backward difference
Finite Differences : Taylor Series
First Derivative
f (x)
f
?
x 5 f (x)
2
1 4
x0 - D x x0 x0 + D x x
f i 1 f i 1 2
f 3 f (D x) 3
Dx 2 3
f f i 1 f i 1
O(Dx) 2
x x 6 x 2 Dx
Page 11
Second-order central difference
Finite Differences : Taylor Series
Second Derivative
f (x)
2 f
?
x 2
5 f (x)
2
1 4
i 1, j
x0 - D x x0 x0 + D x x
x x 12 x2 ( D x) 2
Page 12 Second-order central difference
Finite Differences : Taylor Series
Second Derivative
i 2, j i 1, j i, j i 1, j i 2, j
Page 13
Finite Differences : Taylor Series
Mixed Derivative
i 1, j
Page 14
PR
f f i 2 4 f i 1 3 f i
i 2, j
O(Dx) 2
i 1, j i, j i 1, j i 2, j
x 2 (D x)
i 3, j i 2, j i, j i 1, j 2 f 2 f i 5 f i 1 4 f i 2 f i 3
D
i 1, j
2
O ( x )
x2 (D x) 2
Page 15
Finite Differences : Polynomial
f (x)
f 2 f
?
? x2
x 5 f (x)
f ( x) Ax 2 B x C
2
1 4
x0 x0 + D x x0 + 2 D x x
xi 0 f i A xi B xi C C
2
xi 2 2D x f i 2 A xi 2 2 B xi 2 C A(2D x) 2 B(2D x) C
Page 16
Finite Differences : Polynomial
f ( x) Ax 2 B x C
f i 2 f i 1 3 f i f i 2 2 f i 1 f i
C fi B A
2Dx 2(Dx) 2
f f
2 Ax B xi 0 B
x x i
f f i 2 f i 1 3 f i
x 2Dx
2 f 2 f f i 2 2 f i 1 f i
2A
x 2
x 2
(Dx) 2
Page 17
Discretization techniques at Boundary
First-order accuracy
3
Dy
2 Second-order accuracy
Dy
1 boundary
Page 18
Difference Equations
Partial Differential
Equation (PDE)
No
e<K
Yes
Solution
Page 20
Explicit Marching solution
Page 21
Implicit Marching solution
Ti n 1 Ti n Ti n11 2Ti n 1 Ti n11
Dt D x 2
n 1 n 1 n 1 Dt 2 Dt
AT BTi AT Ti n
A B 1
i 1 i 1
D x 2 D x 2
Page 22
Consistency, Stability, Convergence
Discretization
Governing Discretized
PDE and BC’s Consistency Equations Consistency
Discretization error → Condition on Structure of
Numerical Formulation
Round-off → The discretized equation
Stability
error should tend to the PDE to
T T which they are related when
Dt and Dx tend to zero
Analytical Convergence Approximate
Solution Solution
Stability
Consistency + Stability = Convergence → Condition on Solution of
Numerical Scheme
→ The numerical scheme
Page 23
Analysis of Stability for Heat conduction
e = round-off error
Stable
Unstable
Page 24
Analysis of Stability
1.
Page 25
for Stable solution