notebook.community
Edit and run
if $ \alpha = \frac {c \Delta t}{\Delta x} $
In [ ]: L = 1 nx = 100 dx = L/(nx+1) T = 100 dt = 0.5*dx nx = (T/(dt))-1 C = zeros()
L = 1 nx = 100 dx = L/(nx+1) T = 100 dt = 0.5*dx nx = (T/(dt))-1 C = zeros()