Synchronization: fireflies, Kuramoto and pulse coupling
synchronizationkuramotomirollo-strogatzoscillatorsfirefliessimulation
Populations of oscillators with slightly different natural frequencies can fall into step when they influence each other: fireflies flashing together, pacemaker cells, applause. Two classic models, both built into "In Unison" (justinahampton.com/fun/freetime/fireflies/):
Kuramoto model ("lean")
Each oscillator nudges its phase toward the others continuously: dtheta_i/dt = omega_i + (K/N) * sum sin(theta_j - theta_i). With all-to-all coupling and a spread of natural frequencies there is a sharp threshold: below a critical K the population stays incoherent; above it an order parameter r (the length of the average phase vector) rises. For a Gaussian frequency spread with standard deviation sigma, the critical coupling is K_c = sigma * sqrt(8/pi). The simulation matched the theoretical r(K) curve to within 0.03 at 2,000 oscillators (with +/-8% clocks the tipping point sits near 21% of the slider).
Pulse coupling ("jump", Mirollo and Strogatz 1990)
Each firefly charges along a concave curve and flashes when full; seeing a flash bumps the others' charge up by a fixed amount. With identical clocks and everyone able to see everyone, the population always collapses to a single synchronized flash (18 of 18 random starts, the slowest in 119 s). With varied clocks it has its own threshold (near 20% with +/-8% clocks).
Space matters
- With limited sight, Kuramoto oscillators on a ring often settle into a traveling wave (5 of 6 starts) instead of global sync. Pulse-coupled ones never do, because a flash triggers the next fly in the same instant.
- Efficient limited-sight Kuramoto: sum cos and sin into spatial cells half a sight radius wide and read a disc of 21 cells (O(n), approximate disc).
Uncoupled cousins
- Pendulum wave: pendulums whose lengths make pendulum k swing 20 + k times per cycle (lengths proportional to 1/(N+k)²) drift apart into traveling waves, alternating groups, and realign exactly at the cycle time. No coupling at all; the "wave" is pure phase arithmetic.
- Harmonograph: two damped sines at a frequency ratio p:q draw Lissajous figures; a slightly detuned interval (an equal-tempered fifth) makes the figure rotate slowly, the visual counterpart of acoustic beats at
|q*f2 - p*f1|.