Next: Numerical Dispersion
Up: A Simple Finite Difference
Previous: Initialization
Contents
Index
Frequency domain analysis of the scheme (6.33) is similar to that applied to the continuous time/space wave equation. As a shortcut to full -transform, and spatial discrete Fourier transform analysis, consider again the behaviour of a test solution of the form
|
(6.37) |
where
. This, again may be thought of as a wave-like solution, and in fact, it is identical to the wave-like solution employed in the continuous case, sampled at and . When substituted into the difference scheme (6.34), the following characteristic equation results:
|
(6.38) |
which is analogous to (6.8). The roots are given by
|
(6.39) |
Again, just as for the wave equation, there are two solutions (resulting from the fact that a second difference in time has been applied in scheme (6.33)), representing the propagation of the test solution in opposite directions.
One would expect that, in order for a solution such as (6.37) to behave as a solution to the wave equation, one should have for any value of , the wavenumber--otherwise such a solution will experience exponential growth or damping. This is not necessarily true for scheme (6.33). From simple inspection of the characteristic equation (6.38), and using the same techniques applied to the harmonic oscillator in §, one may deduce that the roots are complex conjugates of unit magnitude when
|
(6.40) |
which can be rewritten as
|
(6.41) |
This inequality must be satisfied for any possible value of . Because
is bounded by one, the condition
|
(6.42) |
is sufficient for stability. This is the famous Courant-Friedrichs-Lewy condition, which has the interesting physical interpretation as illustrated in Figure .
It is useful to note that for slightly greater than unity, condition (6.41) will be violated near the maximum of the function
, which occurs at the wavenumber
, corresponding to a wavelength of --from basic sampling theory, this is the shortest wavelength which may be represented on a grid of spacing . A typical result of numerical instability is then the explosive growth of such a component at the spatial Nyquist wavelength. See Figure 6.3.
Figure:
Numerical Instability. Left to right: successive outputs of scheme (6.33), with a value of
, violating condition (6.42). The sample rate and initial conditions are chosen as for the example shown in Figure 6.2. As time progresses, components of the solution near the spatial Nyquist frequency quickly grow in amplitude; within a few time steps after the last plot in this series, the computed values of the solution become out of range.
|
Next: Numerical Dispersion
Up: A Simple Finite Difference
Previous: Initialization
Contents
Index
Stefan Bilbao
2006-11-15