Ge 263 HWK #1

 

Write programs to solve the heat flow equation  both explicitly and implicitly. Use NX=100, h=1.0, D=1.0, and the initial condition

 

= 0 for i != 50,

 = 0 for i=50

Plot the solution at regular time steps. Verify the stability condition of the explicit and implicit methods.