Giter Site home page Giter Site logo

lcbarnett / kuramoto Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 917 KB

An efficient C implementation of the standard Kuramoto coupled oscillators system, with Matlab interface.

License: GNU Lesser General Public License v2.1

Makefile 2.72% C 80.53% MATLAB 16.74%

kuramoto's Introduction

kuramoto

An efficient C implementation of the standard Kuramoto coupled oscillators system

with C and Matlab interfaces. Simulations using the Euler and classic Runge-Kutta ("RK4") methods are available. There are C and Matlab programs to demonstrate usage of the interfaces to the kuramoto library.

Building and installation

You will need the Make build tool installed on your system, and the Matlab mex and makemex executables (in the bin directory of your Matlab installation) on your system executable path 1.

To build and install the kuramoto shared library, in a terminal navigate to the kuramoto root directory and run

make -C C/lib && sudo make -C C/lib install

This builds, and then installs the library. The default installation directory is /usr/local/lib (you will need admin privileges for this). You may specify an alternative installation path by setting the PREFIX environmental variable before running make install.

To build the C demo, run

make -C C/demo

and to build the Matlab interface, run

make -C Matlab

Testing

To test the C interface, try running

./kuramoto demo

and

./kuramoto audio

in the kuramoto/C/demo directory. To test the Matlab interface, run

kuramoto_demo

at the Matlab prompt in the kuramoto/matlab directory.

Contributing

If someone would like to contribute a Python (NumPy) interface, please contact the maintainer. This should be reasonably starightforward using ctypes.

Lionel Barnett: [email protected]

Footnotes

  1. Building/installing targets a POSIX environment. Tested with gcc (Linux 64-bit), mingw-w64/MSYS2 (Windows 64-bit) and Clang/LLVM (macOS). Note that MSVC (still) does not fully support the C99 standard, so may be problematic. โ†ฉ

kuramoto's People

Contributors

lcbarnett avatar

Watchers

 avatar

Forkers

sacklercentre

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.