Diffusion as repeated local averaging.
At each interior grid point, the FTCS update looks at the second spatial difference and adjusts the current value accordingly. Sharp local variation gets smoothed as time advances.
Partial differential equations · CMNA Laboratory
Define the initial temperature in R, then play the forward-time central-space scheme through time.
At each interior grid point, the FTCS update looks at the second spatial difference and adjusts the current value accordingly. Sharp local variation gets smoothed as time advances.
Bring your own initial condition
Then play the temperature profile through time and watch a space-time heatmap accumulate underneath it.
Preparing R…u0(x) on 0 ≤ x ≤ 1| time step | min u | mean u | max u |
|---|