Xtoys
This page is about a set of cellular automata simulators I have written for
the xwindow system. The
xtoys gallery
shows lots of pictures produced by these programs (beware if you
have a slow link). To peek at the xising user interface,
look here.
An old presentation on these files is in
my contribution to
the Lattice'95 proceedings.
The files in the xtoys directory include:
-
xising.txt,
xising.c: a two dimensional Ising model simulator
(note, an error on LSBFirst machines, i.e. linux, was corrected on 24 Jan 96;
if you have an earlier version, please update)
-
xpotts.txt,
xpotts.c: for the two dimensional Potts model
-
xautomalab.txt,
xautomalab.c: a totalistic cellular automaton simulator
-
xsand.txt,
xsand.c: for the Bak, Tang, Wiesenfeld sandpile model
-
xfires.txt,
xfires.c: a simple forest fire automaton
-
xwaves.txt,
xwaves.c: demonstrates three different wave equations. Makes
a nice lava lamp.
(This doesn't really belong here, but I find it amusing.)
- schrodinger.c:
Play with the Scrodinger equation in an adjustable potential.
New in July 1997: an hbar button. I haven't written any documentation
yet, but if you know about this equation, it should be easy to
figure out the program.
-
xtoys.tar: the above files combined in a tar file. Get this file,
do "uncompress xtoys.tar.Z", then "tar -xvf xtoys.tar" and finally "make".
- an
unofficial xtoys Debian package
-
contrib: contributed variations on these programs. If you
add some nice features to one of these programs, send me the new
program and I'll store it here.
-
amiga: a directory containing similar Amiga programs
- similar
programs for windoze
The Makefile
is kind of trivial, but it is here for those that like such
things. To compile after unpacking, first type "make". This should
almost always work. If this does not, try typing "xmkmf" and then
"make". If this still does not work, look into the original makefile
and put in the necessary paths by hand.
These all look best on a color display.
I want these to compile under generic X; so if you have problems
on some machine supporting X, I would appreciate knowing so
I can fix things.
Related links:
Mike Creutz