The purpose of this project is to simulate a 2D heat diffusion process in a square simulation cell given Dirichlet boundary conditions. Both explicit and implicit Euler methods are implemented and discussed. More specifically, explicit Euler becomes unstable for large timesteps while implicit Euler is limited to small grids because of limited memory. Suggestions on possible improvements are then proposed.
Simulating a 2D heat diffusion process equates to solve numerically the following partial differential equation:
It is evident from animations that the diffusion process slows down until it converges to a stationary configuration.
By using the finite differences expansions for all partial derivatives we get:
Instability occurs for
The approach is the same as above but second order partial derivatives are evaluated at
Lastly I compared the two methods for a given point in space over the first 100 iterations: