next up previous contents index

2.4.8 Lax-Wendroff scheme

Figure 14: Stencil and example for Lax-Wendroff scheme.
\includegraphics[width=8.0cm]{images/pde1d_stencil_m0p.ps} \includegraphics[width=8.0cm]{images/pde1d_solve_linadv_spikes_lax-wendroff_i200n500dt04.ps}
Figure 14 shows the stencil diagram and an example for the Lax-Wendroff scheme with flux at \bgroup\color{DEFcolor}$i+\frac{1}{2}$\egroup
\begin{displaymath}
\textstyle
f_{i+\frac{1}{2}}^n = \frac{1}{2} \left[ f \! \...
...lta x}
\left[ \rho_{i+1}^n -
\rho_{i}^n
\right]
\enspace .
\end{displaymath} (111)