Worksheet for numerical stability -- bad case
d2T T(i+1) + T(i-1) - 2T(i) d2T
Time Temperature ---- = ------------------------- k ----- dt
dx2 dx*dx dx2
100 0 0 0 0 0 0 X 10000 0 0 0 0 0 X 100 0 0 0 0 0
0 ____ ____ ____ ____ ____ ____ ____ ____ _____ _____ _____ _____ _____ _____ ____ ____ ____ ____ ____ ____ ____
x=0 0.1 0.2 0.3 0.4 0.5 0.6 x=0 0.1 0.2 0.3 0.4 0.5 0.6 x=0 0.1 0.2 0.3 0.4 0.5 0.6
100 X X
100 ____ ____ ____ ____ ____ ____ ____ ____ _____ _____ _____ _____ _____ _____ ____ ____ ____ ____ ____ ____ ____
100 X X
200 ____ ____ ____ ____ ____ ____ ____ ____ _____ _____ _____ _____ _____ _____ ____ ____ ____ ____ ____ ____ ____
100 X X
300 ____ ____ ____ ____ ____ ____ ____ ____ _____ _____ _____ _____ _____ _____ ____ ____ ____ ____ ____ ____ ____
100 X X
400 ____ ____ ____ ____ ____ ____ ____ ____ _____ _____ _____ _____ _____ _____ ____ ____ ____ ____ ____ ____ ____