Finite difference method - PowerPoint PPT Presentation

1 / 34
About This Presentation
Title:

Finite difference method

Description:

Finite difference method Poisson equation in 2D with Dirichelt BC Well-posedness Existence Uniqueness Finite difference method Finite difference method Finite ... – PowerPoint PPT presentation

Number of Views:278
Avg rating:3.0/5.0
Slides: 35
Provided by: NUS
Category:

less

Transcript and Presenter's Notes

Title: Finite difference method


1
Finite difference method
  • Poisson equation in 2D with Dirichelt BC
  • Well-posedness
  • Existence
  • Uniqueness

2
Finite difference method
3
Finite difference method
  • Finite difference approximation
    Dimension-by-dimension
  • Computation error analysis
  • Solve the linear system efficiently
  • Error bound???

4
Local truncation error
5
Finite difference method
  • Order of accuracy second order
  • Error analysis -- maximum principle
  • Proof Exercise!!
  • Efficient solver
  • Iterative solvers CG, PCG, Gauss-Seidel, SOR,
    ..
  • Direct Poisson solver

6
Linear system
7
Linear system
8
Matrix form
9
Matrix form
10
Matrix form
  • Linear system
  • Iterative solvers Rewrite the difference
    equations as

11
SOR method An example
12
Fast Poisson solver via DST
  • For Poisson equation in 1D with Dirichlet BC
  • Finite difference discretization
  • Linear system

13
Fast Poisson solver
  • Homogeneous BC
  • In PDE level sine transform

14
Fast Poisson solver
  • Exact solution

15
Fast Poisson solver
  • In discrtization level Discrete since transform
    (DST)

16
Fast Poisson solver
17
Algorithm for fast Poisson solver via DST
18
Fast Poisson solver
  • Inhomogeneous BC --- Homogenizing the BC
  • Introducing
  • Plugging into the difference equations
  • With

19
Algorithm for fast Poisson solver via DST
20
Fast Poisson solver in 2D
  • The equation
  • The finite difference discretization

21
Fast Poisson solver in 2D
  • Discrete sine transform in 2D
  • Plugging into the finite difference equations

22
Algorithm for Fast Poisson solver in 2D
23
Algorithm for Fast Poisson solver in 2D
24
Comments on fast Poisson solver
  • Advantages
  • Direct solver give exact solution to the linear
    system
  • Memory cost O(M) no extra memory is needed!!
  • Computational cost O(M ln M)
  • Very efficient in 2D 3D due to FST!!!
  • Can be extended to Neumann BC or periodic BC
  • Disadvantages
  • The domain should be a rectangle in 2D box in
    3D
  • Uniform mesh in each direction is needed!!
  • The coefficients of the PDE must be constant!!
  • BC much be the same type in opposite edges!!!

25
Extension to Neumann BC
  • The problem

26
Extension to Neumann BC
  • Discretization at shifted grids points by half
    grid
  • Direct Poisson solver via discrete cosine
    transform (DCT)
  • Exercise!!
  • Extension to periodic BC discrete Fourier
    transform (DFT)

27
Poisson equation in 2D on a disk or shell
  • The problem
  • The ideas Domain mapping or variable transform

28
The discretization
29
The discretization for a shell
30
The discretization for a disk
31
The discretization
  • Local truncation error
  • Order of accuracy second order
  • Error estimate -- maximum principle
  • Solution of the linear system
  • Fast Poisson solver
  • Discrete Fourier transform in transverse
    direction
  • Solve a linear system with tri-diagonal
    coefficient matrix in r-direction

32
Extension
  • 3D Poisson equation
  • In a box, sphere, shell, cylindrical cylinder,
    etc.
  • General linear elliptic equation
  • Elliptic system
  • Navier system,

33
More topics
  • Compact scheme --- high order methods with less
    grid points
  • 4th (6th ,) order methods need 5 (7, ) grid
    points in 1D
  • Need use ghost points near boundary
  • Question Can we design high order methods using
    less grid points???
  • An example in 1D
  • Extension to 2D 3D Exercise!!!!

34
More topics
  • General geometry in 2D 3D
  • FEM or FVM or Boundary integral method
  • Adaptive mesh refinement (AMR)
  • Solution has sharp change locally
  • Refine the mesh adaptively based on the
    approximation
  • Nonlinear problem
  • Discretization, solve nonlinear system
  • ..
Write a Comment
User Comments (0)
About PowerShow.com