fd1d_advection_ftcs_test, a MATLAB program which calls fd1d_advection_ftcs() 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 FTCS method, forward time difference, centered space difference.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
fd1d_advection_ftcs, a MATLAB 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 forward time, centered space (FTCS) difference method.