Simulation viewport2D / REAL-TIME
DRAG SLIDERS TO EXPERIMENT
See harmonics and reflection emerge on a string with fixed endpoints.
A one-dimensional wave equation governs the motion of a stretched string. Here a finite-difference update makes waves propagate and reflect, while a periodic drive can excite resonances.