diffusion_pde_test, a MATLAB code which calls diffusion_pde(), which solves the diffusion PDE dudt - mu * d2udx2 = 0 in one spatial dimension, with a constant diffusion coefficient mu, and periodic boundary conditions, using FTCS, the forward time difference, centered space difference method.
The computer code and data files described and made available on this web page are distributed under the MIT license
diffusion_pde, a MATLAB code which solves the diffusion PDE dudt - mu * d2udx2 = 0 in one spatial dimension, with a constant diffusion coefficient mu, and periodic boundary conditions, using FTCS, the forward time difference, centered space difference method.