Simulation of Molecular Dynamics

A maintained version is kept in 9front as games/moles.

This program is basically a C implementation of this K program, i.e. it simulates a small portion of a gas like Argon, but I have added periodic boundary conditions. It's written for Plan 9 and displays molecule motion in real time. If you add frand (/sys/src/libc/port/frand.c) to plan9ports, you can compile it for Unix; or just download my Linux binary. The program supports several command line options to adjust some parameters, have a look at -h.

If you don't have p9p installed, you also need to copy p9p's devdraw to a directory in your $PATH.

Screenshot