Kuramoto Coupled Oscillators & Chimera States on the GPU
In The 2D XY Model & BKT Vortex Unbinding, equilibrium spins aligned smoothly everywhere except at point-like topological vortices. Replace thermal noise with non-local phase-lagged coupling among identical oscillators (Kuramoto & Battogtokh, 2002), and symmetry shatters spontaneously into a Chimera State: an impossible-looking hybrid where perfectly phase-locked spiral waves surround a macroscopic, boiling core of completely desynchronized oscillators – even though every single oscillator obeys the exact same equation!
1. The 2D Non-Local Kuramoto–Sakaguchi Equation
Each pixel $\mathbf{r}$ carries a phase $\theta(\mathbf{r}, t) \in [0, 2\pi)$ coupled to all neighbors within a disk of radius $R$ with phase frustration parameter $\alpha \in [0, \pi/2)$:
When $\alpha = 0$, the system minimizes the XY energy and locks into global synchronization ($R_{\text{loc}} \to 1$). As $\alpha \to \pi/2 \approx 1.57$, the coupling becomes nearly conservative/repulsive near spiral cores: oscillators inside the core experience a vanished mean field $R_{\text{loc}} \approx 0$ and drift chaotically while oscillators outside the core remain phase-locked in rotating spiral arms.
💻 GLSL: 2D Non-Local Kuramoto–Sakaguchi Phase Evolution KernelGLSL (WebGL2)
// 2D Non-Local Kuramoto-Sakaguchi Phase Field in WebGL2
// d(theta)/dt = omega + (K / N) * sum_{r' in disk(R)} sin(theta(r') - theta(r) - alpha)
float sumSin = 0.0;
float count = 0.0;
for (int dy = -5; dy <= 5; dy++) {
for (int dx = -5; dx <= 5; dx++) {
if (dx*dx + dy*dy > 25) continue;
float thN = texture(uPhase, vUv + vec2(dx, dy) * uTexel).r;
sumSin += sin(thN - th - uAlpha);
count += 1.0;
}
}
float nextTh = mod(th + dt * (uOmega + uK * (sumSin / max(1.0, count))), 6.2831853);