Radial Distribution Function¶
Purpose¶
This benchmark assesses the ability of machine-learned interatomic potentials (MLIP) to accurately reproduce the radial distribution function (RDF) of liquids. The RDF characterizes the local and intermediate-range structure by describing how particle density varies as a function of distance from a reference particle. Accurate modeling of the RDF is essential for capturing both short-range ordering and long-range interactions, which are critical for understanding the microscopic structure and emergent properties of liquid systems.
Description¶
The benchmark performs an MD simulation using the MLIP model in the NPT ensemble for 500,000 steps, leveraging the jax-md engine from the mlip library. Water is run at 295.15 K and 1 atm, while all other solvents are run at 293.15 K and 1 atm. The starting configuration is already equilibrated. For every specific atom pair (e.g., oxygen-oxygen in water) the radial distribution function (RDF or g(r)) is calculated from the simulation. The equilibrium density of the same simulation is assessed separately in the Density benchmark.
Water Radial Distribution Function Image taken from Wikimedia under a CC BY-SA 4.0 license.¶
The RDF, \(g(r)\), is defined as:
where:
\(r\) is the distance from a reference particle,
\(\rho\) is the average number density,
\(N\) is the number of particles,
\(r_{ij}\) is the distance between particles \(i\) and \(j\),
\(\delta\) is the Dirac delta function,
and the angle brackets denote an ensemble average.
For each system, the benchmark compares the MLIP-predicted RDF against reference data. The metric depends on what reference data is available:
For water, a full experimental RDF curve is available, so we compute the Mean Absolute Error (MAE) and Root Mean Square Error (RMSE) of the predicted RDF against it, together with the deviation of the first-shell peak position.
For the other solvents, only the reference first-solvation-shell peak positions are known, so performance is quantified by the deviation of the predicted first-peak position from the reference (no MAE/RMSE).
Dataset¶
For the water radial distribution benchmark we set up a cubic box of 500 water molecules using OpenMM and the TIP3P water model. We equilibrated the box in the NPT ensemble at standard conditions and extracted the final snapshot as input for the benchmark. For the solvent radial distribution benchmark, we initialized the solvent boxes (methanol, acetonitrile, CCl4) by stacking randomly rotated molecules to yield a cubic box with a target side-length of 28 Å at the experimental density. We equilibrated the box in the NPT ensemble using the GAFF force field and OpenMM.
We use the experimental water RDF profile of Skinner et al.[1] as reference data. For other solvents (methanol[2], acetonitrile[3], CCl4[4]), we use the location of the first solvation shell peaks as reference data.
Interpretation¶
The relevant error — the MAE/RMSE of the RDF for water, or the first-peak deviation for the other solvents — should be as low as possible. These metrics are likely to vary significantly for different molecular liquids and temperature conditions. The error should be compared per liquid type and then examined in more detail for specific molecular interactions to identify areas where the MLIP struggles to reproduce the correct structure. Within these problematic regions, individual RDF profiles can be visually inspected to understand how the MLIP predictions deviate from experimental or reference data.