Xtoys
(http://thy.phy.bnl.gov/www/xtoys/xtoys.html)
The directory
xtoys
contains a set of cellular automata simulators
I have written for
Xwindows.
The executables here are for Linux. 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.
A further description of 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.
- schrodinger.c:
Play with the Scrodinger equation in an adjustable potential. 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".
(If you are using Mosaic, the uncompress step is not needed as Mosaic does
it for you.)
- A simple Makefile
for these programs.
- A Debian package,
xtoys_1.5-1_i386.deb
containing binaries for these programs with i386 Linux.
-
amiga: a directory containing similar Amiga programs
-
windoze: early efforts towards a windows version
-
develop: some demos for programming X plus some miscellaneous
unpolished stuff
-
contrib: a directory containing variations on these
programs contributed by others
If you are on one of our local sparcstations, pointers to the executables
are in /usr/local/bin. If this is in your path, typing "xising," etc.
will start the corresponding program.
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.
Note:
Because of the Unisys patent on
the LZW algorithm, compression is disabled for the subset of these
programs that create gif files. The programs still work, but the
saved graphics files are an order of magnitude larger than with
compression. Comments in the source should enable any reasonable
programmer to reinstall this feature (hint: search for the word "illegal").
Related links:
Mike Creutz
creutz@bnl.gov
File last modified: November 1999