Tuesday 24 January 2017

The Swarmalator

The Swarmalator

The Swarmalator taken from O'Keeffe and Strogatz (arXiv). N is the number of particles, K is the strength of the phase coupling (neighbours want to have same colour for K > 0, as different as possible for K < 0) and J is the attraction between phases (J > 0 like attracts like, J < 0 opposite phases attract). dt is the timestep for Euler integration (warning can go unstable for large dt!). Restart by clicking the N slider below which moves all the particles to a random position and gives then a random phase/colour.


  • Static Sync. e.g. (J,K) = (0.1,1)
  • Static Async. e.g. (J,K) = (0.1,-1)
  • Static Phase Wave. e.g. (J,K) = (1,0)
  • Splintered Phase Wave. e.g. (J,K) = (2,-0.3) this can take some time to fully develop.
  • Active Phase Wave. e.g. (J,K) = (1,-0.8)


  1. Hi, interesting Applet. Do you have the code online somewhere on Github?

  2. Right click, 'View Page Source', it's just typed into the header :)