Title: NUMERICAL METHOD FOR MASS ADVECTION WONCHAI PROMNOPAS 13 FEB 2003
1NUMERICAL METHOD FOR MASS ADVECTION(WONCHAI
PROMNOPAS)13 FEB 2003
2(No Transcript)
3(No Transcript)
4(No Transcript)
5(No Transcript)
6(No Transcript)
7(No Transcript)
8Central difference
Forward difference
The value of the second derivative at P
Backward difference
9(No Transcript)
10(No Transcript)
11(No Transcript)
12(No Transcript)
13(No Transcript)
14(No Transcript)
15(No Transcript)
16The Advection Equation
Numerical Solution of the Advection Equation
time derivative
n labels the time step and k labels the grid point
space derivative
The finite difference equation
Forward Time Centered Space (FTCS) method
17(No Transcript)
18(No Transcript)
19(No Transcript)
20The Lax Method
This method is stable provided the time step
satisfies the Courant-Friedrichs-Lewy (CFL)
condition
21Clearly the wave is being artificially spread
out. Note however that there are no oscillations
and that the wave moves at the correct speed
(i.e. the peak is in the right place, although
significantly reduced in size).
22why there is a difference between the FTCS and
Lax methods, re-arrange the Lax method
This is the same as the FTCS method except for
the last term, which is a finite difference
approximation to a second order space derivative
of a. The Lax method applied to the advection
equation is equivalent to the FTCS method applied
to an advection-diffusion equation
diffusion coefficient
23The Lax-Wendroff Method
24We see that there remains some oscillation in the
trailing half of the wave and the peak height is
slightly reduced. Note also that the peak is not
quite in the correct position. Despite these
problems, the Lax-Wendroff method is far superior
to the FTCS and Lax methods.
25Courant-Friedrichs-Lewy(CFL or Courant) condition
26?????????????????????
Physics , Science Chiang Mai University