Some numerical integrations and plotting of the Kuramoto model in two populations of oscillators as well as the Ott-Antonsen reduction of that system.
The makefile contains some compiler flags to make OpenMP work on MacOS (e.g. -Xpreprocessor
). On other operating systems this might have to be changed.
Another caveat: data is written to binary files. As different architechtures use different endianness problems from this might arise, but if all code is executed on the same machine there shouldn't be any problems.
Please, read all comments in the source code carefully -- especially in main.cpp
. In order for the program to write data properly you might have to create a directory data
in the same folder as the code (src
in this case).
Special thanks to the makers of the Boost C++ library, you saved me the trouble of coming up with my own RK4 algorithm, and to my tutor for the great help and patience while debugging this code.