Pising
Introduction
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.
Licence
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.
News
- 2009-02-04 Note on the third annoying feature below. I found the problem and submitted a bug report on the matplotlib tracker.
- 2009-01-20 Started this webpage and made the program available.
This is also a good time to list the annoying features that I should correct.
- Copy-pasting the text from the results section doesn't work. (Because wxPython doesn't support it, it seems.)
- wxPython doesn't seem to have a "save file" widget, so there's none.
- At least on my Linux that uses a cups server for printing, the program hangs on startup if the network is not on. I didn't ask the program to look for printers, so I'm assuming that one of the libraries is responsible.
Download
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.
- pising 0.9.4
- python-ising 0.9.2