2. Objectives
• Understand the classification of Second Order Linear PDEs
• Understand the Finite Difference Methods
• How to discretize an equation
• How to analyze convergence
• Implement and Analyze Schemes for
• A Parabolic PDE: 1D Heat-Diffusion Equation
• An Elliptic PDE: Laplace’s Equation
𝑒 𝑖𝛼𝑥
𝐹∘
𝛻2
5. Von-Neumann Analysis
• A Finite Difference Equation converges to its PDE when it is stable
• Lax-EquivalenceTheorem
• Break the solution into its Fourier modes and examine one of them.
• Let 𝑢𝑖
𝑛
= 𝑄 𝑚
𝑒 𝑖𝛼𝑥
in the difference equation (Where 𝑖 is the imaginary unit)
• Solve for the amplification factor, 𝑄
• Stable when 𝑄 ≤ 1
𝑒 𝑖𝛼𝑥
𝐹∘
𝛻2
6. 1D Heat-Diffusion Equation
A PARABOLIC PDE – TEMPERATURE DISTRIBUTION IN A ROD
𝜕𝑢
𝜕𝑡
= 𝑘
𝜕2
𝑢
𝜕𝑦2
𝑢𝑖
𝑛+1
= 𝑢𝑖
𝑛
+
𝑘Δ𝑡
Δ𝑥2 [𝑢𝑖+1
𝑛
− 2 𝑢𝑖,𝑗+1 + 𝑢𝑖−1
𝑛
]
Centered Space Difference !
𝑢𝑖
𝑛
=
−𝑘Δ𝑡
Δ𝑥2 𝑢𝑖+1
𝑛+1
+ 1 +
𝑘Δ𝑡
Δ𝑥2 𝑢𝑖
𝑛+1
+
−𝑘Δ𝑡
Δ𝑥2 𝑢𝑖−1
𝑛+1
BTCS FTCS
7. Comparison of FTCS and BTCS
BTCS
• Implicit
• Slow
• Unconditionally Stable
FTCS
• Explicit
• Fast
• Conditionally Stable
• Only when
𝑘Δ𝑡
Δ𝑥2 ≤
1
2
𝑒 𝑖𝛼𝑥
𝐹∘
𝛻2
9. Different Boundary Conditions - Example
DIRICHLET
• Heat escapes out of the sides
• Temperature at boundaries is fixed
NEUMANN
• Heat is trapped
• Heat Flux at boundaries is fixed
𝑒 𝑖𝛼𝑥
𝐹∘
𝛻2