Formation of Crystal
a java simulation by Xiao-Gang Wen
Explanation
This program simulates the motion of interacting particles. The interaction between two particles is repulsive at small separations and attractive at large separations. The moving particle also experience an additional friction force. So, as time evolves, the particles will settle into a crystal configuration that (locally) minimizes the total potential energy, if the temperature is zero.