There is something wrong with the model, not just with the applet. As you can easily see the distance between the particles on the surface changes. Therefore some of the particles of the surface must go inside. I guess that the theory does not include that particles have volume.  It treats them as they were points. Can anybody solve the puzzle?