Introduction
This applet displays a system of interacting particles.
You control pressure, temperature and other factors.
Note: drag the scroll bar on the far left hand side to control the volume available.
Click with button 1 to move the particles, and button 2 to delete them.
The applet has two types of particle.
The second has a greater potential size and is not affected by gravity.
The two types of particle are intended to help with study of crystal formation,
in compounds with more than one type of molecule.
As it stands, the applet succeeds in exhibiting a number of non-trivial aspects of crystal formation.
For example, making a crystal using rapid cooling produces a structure with more faults than
the results of a more gradual cooling process.
Many additions need to be made:
- Bounces are currently a hack - there is no conservation of energy or momentum;
- There are no attractive forces between the molecues. These are essential for a serious simulation of crystal growth;
- Add connections between molecules;
There is some extra housekeeping relating to occasional changes of bin - but
essentially, this algorithm is O(n).
It works best if the objects are relatively small. If large objects are
introduced, the grid is resized accordingly.