snapshot of spin system


Pising is a program for simulating the 2-d Ising model, written in Python and C++. I made it to replace a Windows program from the early nineties, used in a laboratory course at the University of Helsinki. I put it available here in the hope that it will be useful to someone.

The program consists of two parts. Pising itself is basicly a single Python program that takes care of the user interface. In addition to that, and because of efficiency, there is a Python extension (python-ising) written in C++ that does the actual simulation.

See here for a screenshot.


Pising is licenced under GPL v2. The same goes for the extension module, except that it contains the Mersenne Twister random number generator, the licence of which is here.



I will provide here at least the latest version and the distribution-specific packages that I've happened to make. I've only tried the program on Linux, but I don't see why it wouldn't work on other systems as well, given that the libraries exist.