PREVIOUS: The 2-D wave and 1-D fluid equtions | UP: Course Outline | NEXT: Application to quantum systems |
Take the diffusion coefficient to be D = 1, and work on a uniform grid of 201 points running from x = -10 to x = 10. Start with the fundamental solution at t = 1 and integrate the system forward in time to t = 10 in steps of size dt. Plot your solution at t = 10 for dt = 0.005, 0.01, 0.05, 0.1, and compare it to the fundamental solution at t = 10.
You can use as a starting point the solution to Exercise 6.1. Your task is to rewrite the FTCS integrator to implement the diffusion equation. [Solution]