Partial differential equations · CMNA Laboratory

Turn an initial shape into motion.

Define the initial displacement in R, then watch the finite-difference wave scheme propagate it through time.

Space and time are both discretized.

The method updates each grid point from neighboring values in space and earlier values in time. That turns a PDE into a repeated recurrence that is ideal for playback.

Bring your own initial displacement

Define u₀(x) in R.

Then play the wave through time and see what the grid does to it.

RuntimePreparing R…
RDefine u0(x) on 0 ≤ x ≤ 1

time stepmin umax u
Book§7.3.2 · The Wave Equation · p. 223Book details
CMNA packagewave
TeachingInstructor notes and chapter contextOpen teaching material