Chain of spring-coupled masses in a line, simulating 1D wave propagation with reflections
Simulates a chain of spring-coupled masses arranged in a line, initialized with a velocity impulse at the center. The nearest-neighbor coupling produces wave propagation and reflection at the fixed endpoints, illustrating the discrete wave equation. Ball sizes vary with local density to visualize compression and rarefaction.
Controls: Click and drag to orbit, scroll to zoom.