Each of the 256 molecules is a point particle that feels the Lennard-Jones force from every neighbour within 2.5 sigma. Newton's second law is integrated with the velocity-Verlet scheme every 6.7 femtoseconds; the box repeats periodically so there are no walls. Everything is computed in reduced units (sigma = epsilon = mass = 1) and shown in real units for a water-sized molecule: sigma = 0.3166 nm, epsilon / k = 78.2 K, mass 18.015 u, so one reduced time unit is 1.667 ps.
U(r) = 4 eps [ (sigma/r)^12 - (sigma/r)^6 ] minimum -eps at r = 2^(1/6) sigma
m a_i = sum_j F(r_ij), v += (dt/2) a, x += dt v, v += (dt/2) a' velocity Verlet
T = 2 KE / (3 (N-1) k), P = N k T / V + (1 / 3V) sum r_ij . F_ij virial pressure
f(v) = 4 pi (m / 2 pi k T)^(3/2) v^2 exp(-m v^2 / 2 k T) Maxwell-Boltzmann
MSD(t) = 6 D t (Einstein relation), g(r) = pair density / ideal-gas density
- Temperature and density set the state point. The thermostat (Berendsen weak coupling) rescales velocities toward the target; switch it off and the run is microcanonical, so the total energy should stay constant (the drift read-out shows how well).
- Speed histogram converges to the Maxwell-Boltzmann curve; g(r) shows the shell structure (first peak near 1.05 sigma = 0.33 nm); MSD grows linearly in a fluid and its slope gives the diffusion coefficient.
- Honest simplifications: one Lennard-Jones site per molecule, with no charges, no hydrogen bonds and no rotation, so this is a simple fluid of water size, not real water. It lacks water's density maximum and its strong cohesion; at 300 K it behaves as a dense supercritical-like fluid, and pressure and diffusion come out well above real water (D about 7e-9 against 2.3e-9 m^2/s). Berendsen coupling gives the right mean temperature but not the exact canonical fluctuations. Only 256 molecules, the potential is cut at 2.5 sigma, and the speeds and g(r) are averaged over a short run, so they are noisy.
- Same model in the 2D twin: one shared physics module; the 3D page and the projection only draw it.