Lennard-Jones Molecular Dynamics
300 disks in a periodic box interacting through the Lennard-Jones potential (reduced units ), integrated by velocity-Verlet (the verified shared symplectic engine) with a shifted-force cutoff so energy is conserved. Particles are coloured by kinetic energy. The temperature is read from the kinetic energy by equipartition, the pressure from the virial, and the structure from the radial distribution : a flat for a gas, a strong first peak near for a dense liquid. Set it cold and dense and it freezes into a triangular lattice; heat it and it melts.
temperature T1.00
density rho0.55
steps / frame4
T0.000
Pvir0.000
E/N0.000
dE/N0.0e+0
rho0.000
0.0000.0000.0000.0e+00.000WHAT TO TRY
- Vary each control and watch the rail readouts respond.
- Compare the diagnostic plot against the live scene.