HomeChemistry & MaterialsRadial Distribution Function in a Lennard-Jones Fluid

Radial Distribution Function in a Lennard-Jones Fluid

A live 3D molecular-dynamics box of Lennard-Jones particles under periodic boundary conditions, with a real-time radial distribution function g(r) plot that reveals gas, liquid and crystalline structure as you change temperature and density.

Chemistry & Materials3DAdvanced60 FPS📱 Mobile-adapted⇄ 2D version
molecular-dynamics-physics ↗ Open standalone

This simulator integrates the equations of motion for 125 Lennard-Jones particles in a periodic 3D box — the same reduced-unit model used to benchmark real molecular-dynamics codes — and builds the radial distribution function g(r) live from the running pairwise-distance histogram. g(r) is the structural fingerprint of a substance: it is directly measurable in the lab from X-ray or neutron diffraction, and it is how a gas, a liquid and a crystal are distinguished mathematically. Drag the temperature and density sliders (or jump to a gas/liquid/solid preset) and watch the box melt, condense or order itself while the g(r) plot, coordination number, instantaneous temperature and virial pressure update in real time.

⚙ Under the hood

A live 3D molecular-dynamics box of 125 Lennard-Jones particles under periodic boundary conditions, with a real-time radial distribution function g(r) plot revealing gas, liquid and crystalline structure as temperature and density change.

molecular dynamicslennard-jonesradial distribution functionstatistical mechanicsperiodic boundary conditionschemistry

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)