Preparing the laboratory…
🧪 Molecular Dynamics
The science

Model. Every pair of atoms interacts through the Lennard-Jones potential U(r) = 4ε[(σ/r)12 − (σ/r)6] with the Lorentz mixing rule σij = (σi+σj)/2. The minimum −ε sits at r = 21/6σ; the force is F = 24ε(2(σ/r)12 − (σ/r)6)/r. Atoms are kept in a box by soft harmonic walls (U = ½k d², included in the energy).

Dynamics. Velocity-Verlet integration: v += ½aΔt; x += vΔt; recompute a; v += ½aΔt — time-reversible and symplectic, so the total energy E = KE + PE stays constant when the thermostat is off (NVE). Temperature follows equipartition: KE = (3/2) N kB T. With the thermostat on, a Berendsen weak-coupling rescale λ = √(1 + (Δt/τ)(T0/T − 1)) steers T toward the slider (this is not a true canonical ensemble but gives the right average temperature).

Bonds. A line is drawn between two atoms closer than 1.3σij: it marks where the potential is attractive, not a covalent bond.

Honest simplifications. This is a toy Lennard-Jones cluster in reduced units with element-dependent masses and sizes but one common ε. There is no electrostatics, no bond angles or torsions, no quantum mechanics, so it shows what a force field does but is not a model of any real molecule. Atoms, bonds, cage and bench were modelled in Blender; the dynamics are computed live.

Independent checks (run on load):

running…

Live readout

Atoms0
Bonds0
KE0.00
PE0.00
Total E0.00
T (inst.)0.00
Energy drift0%
HCNOFP/S
Made with 🟠 Blender · Three.js