About the library
What does it do?
If you see an animated SpiMoSim logo on top of this page, SpiMoSim is running right now in your browser! 2
What is its purpose?
Use SpiMoSim if you want an easy way to create a fast web based simulation1. SpiMoSim will take care of as much as possible:
- You define the variables and write a function for a single simulation step.
- SpiMoSim creates the graphical user interface based on your model configuration.
- SpiMoSim runs the simulation in a second thread and saves simulation steps as configured. This is one of many optimizations to guarantee a smooth user experience.
- SpiMoSim displays the data in a "video player". SpiMoSim has the ability to draw agent based models and neural networks out of the box or anything else using a HTML canvas element.
- SpiMoSim plots the data via dygraphs. It will automatically update the graphs as the simulations runs.
How to build applications with SpiMoSim?
It is free software!
SpiMoSim is published under the terms and conditions of the MIT-LICENSE.
1Simulation meaning something that is calculated step by step, usually based on some settings chosen by the user and presented graphically. This includes physical, mathematical, financial and biological models, numerical calculations and more. It was primarily developed with physical models (mostly agent based models) in mind.
2What you see is the Multiple Epidemics Model by K. Sneppen et al. run on a 2D lattice (connections between the text and the background were removed):
Sneppen K, Trusina A, Jensen MH, Bornholdt S (2010) A Minimal Model for Multiple Epidemics and Immunity Spreading. PLoS ONE 5(10): e13326. doi:10.1371/journal.pone.0013326
3Let me know if it does not!
A simple demonstration of the Ising model. This is the version included in the download.
The Bornholdt Model with strategy spins
A fully featured version of the market model by S. Bornholdt 4
More demonstrations can be found at Complex Systems Lab.
Please let me know if you use SpiMoSim for your own projects.
4S. Bornholdt, Expectation bubbles in a spin model of markets: Intermittency from frustration across scales, Int. J. Mod. Phys. C, Vol. 12, No. 5 (2001) 667-674.