A simple particle simulator written in C++ using the SDL library.
Have the SDL development library installed. Type make while in the src directory.
cd src
make
Basic usage is as follows:
./slid [number of particles]
Each particle is given a random starting location, random velocity, and random acceleration. Collisions with the walls do not result in energy loss currently. If a particle has a non-zero acceleration it will eventually come to rest.
./slid 50
This second example shows an interesting effect from the random distribution. A vague grid-like pattern can be seen which might be a result of my usage of the C random number functions or might be a limitation of the random generation itself (leaning towards my usage).
./slid 10000