The Lennard-Jones simulator
Stuart Lynn (email@example.com), the School of Physics at the University of Edinburgh.
This applet simulates a Lennard-Jones interacting substance. In the Lennard-Jones model each particle is considered a point mass that interacts with other particles via a long range attraction short range repulsive force. The simulation can be set up with different densities and initial energies and the motion of the particles investigated. Cooling of the sample can also be introduced so that transition from gas to liquid to solid can be observed. At each stage the radial distribution function of the substance, which gives a plot of the mean number of particles as a function of the distance from a reference particle (and so gives a measure of the order/disorder of the substance) can be observed.
The model this applet simulates was proposed as an improvement to the ideal gas. Unlike the ideal gas model particles can interact and exchange energy and interact through the .This applet simulates a Lennard-Jones interacting substance. In the Lennard-Jones model each particle is considered a point mass that interacts with other particles via a long range attraction short range repulsive force. Lennard-Jones potential. This potential is a good model for many substances as it describes the long range attractions (ie van der wals forces) and short range hard sphere repulsion from like charges in the nucleus.
To use the Lennard-Jones simulator applet, you require a web browser which a java plugin later than 1.2 (note it has not been tested with 1.2 - only 1.3.1 and 1.4), for example the latest JRE from Sun or Apple's JDK on Mac OS-X. You can also use the AppletViewer provided with your chosen JRE/JDK.
As this applet involves a lot of calculations per second, older computers may have some trouble running it at a useable speed. If this is the case reduce the density in the simulation and try again.
It is not recommended that you use a remote X-session to run this applet as it draws to the screen a lot and the resulting lag makes the animation jerky.
Unpack the applet - if it came with a group of other applets from the School of Physics at the University of Edinburgh, it should be in the Lennard-Jones subdirectory. Inside the directory should be some java code, classes and a number of html files, including an index.html which should contain links to this documentation, JavaDoc for the simulator and some pages with example configurations of the applet.
The provided html files give you some example configurations of the applet. You can set the size of this applet as usual. Below is an example html file which embeds a tabbed 600 pixels by 500 pixels version of the applet.
How the applet is used is up to the user - it could be used in lectures, embedded in online course material or any other use that could be conceived.
There is complete JavaDoc for the classes in this applet in the "javadoc" subdirectory of the applet directory.