Skip to content

k-donn/kuramoto-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kuramoto Model

An animation of sine functions using the Kuramoto Model

Usage

usage: python graph.py [-h] [-d] K

An animation of synchronization of sine functions.

positional arguments:
  K            Coupling constant for the sine functions

optional arguments:
  -h, --help   show this help message and exit
  -d, --debug  Show the plot instead of writing to a file

Example

Example GIF

Running

  • Create conda env from environment.yml (see Install Conda)
  • From the root of the folder,
python ./graph.py
  • It will generate the files into ./recordings/
  • Or use -d and it will display the matplotlib window

Meta

I got the inspiration to make this from standupmath's video on a spreadsheet representation of the Kuramoto model.