**fd1d_advection_lax_wendroff_test**,
a C++ program which
calls fd1d_advection_lax_wendroff() to
apply the finite difference method to solve the time-dependent
advection equation ut = - c * ux in one spatial dimension, with
a constant velocity, using the Lax-Wendroff method for the time derivative,
writing graphics files for processing by gnuplot.

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

fd1d_advection_lax_wendroff, a C++ program which applies the finite difference method (FDM) to solve the time-dependent advection equation ut = - c * ux in one spatial dimension, with a constant velocity, using the Lax-Wendroff method to treat the time derivative, writing graphics files for processing by gnuplot.

- fd1d_advection_lax_wendroff_test.sh, runs all the tests.
- fd1d_advection_lax_wendroff_test.txt, the output file.

Graphical output for this program was created using GNUPLOT. Data at selected time steps was written to a "data" file, and the appropriate GNUPLOT commands were written to a "command" file. The plot can be created by the command

gnuplot < advection_commands.txt

- advection_data.txt, the solution data.
- advection_commands.txt, gnuplot commands to plot the data.
- advection_lax_wendroff.png, a (not very satisfactory) image of the solution.