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
WHAT TO TRY
- Raise the temperature: the disks rattle harder, the pressure climbs, and the radial distribution g(r) washes out as liquid order melts toward a gas.
- Increase the density: neighbours pack in, g(r) grows sharp shells, and the virial pressure swings as the repulsive core of the Lennard-Jones potential takes over.
- Read g(r) below the critical point: a tall first peak and decaying oscillations are the signature of a liquid, structured up close but disordered far away.