Professional Documents
Culture Documents
NM (II) : Lab 3: Pdes - Heat Equation
NM (II) : Lab 3: Pdes - Heat Equation
1D HEAT EQUATION
a) In Matlab, compute numerically by the Finite Difference Method approximate solutions uh of the
following one-space dimensional heat equation with Dirichlet boundary conditions:
Implement and test for different space-time discretization step sizes (h and k) the fully explicit (FE), the fully
implicit (FI) and the Crank-Nicolson (CN) schemes (if you prefer, you can implement the general two-levels or
theta scheme and obtain the other three schemes as particular cases). Create suitable plots of the obtained
numerical (approximate) solutions. What about consistency, stability, convergence of the methods…does the
experiments confirm theory? What about the stationary state solution (solution for t )? Discuss the
results.