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 information on this web page is 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.