Preferred distance
RDF shows how likely one particle is to occur at distance r from another particle.
What RDF measures, why peaks matter, how molecular shells are identified, how coordination numbers are obtained, and how to interpret solvent, ion, ligand, membrane, and biomolecular organization after molecular dynamics simulations.
RDF shows how likely one particle is to occur at distance r from another particle.
Peaks and minima reveal first, second, and later coordination shells.
RDF describes molecular organization, not simply whether two atoms touched once.
RDF stands for Radial Distribution Function. It measures how particle density changes with distance from a selected reference particle or group.
RDF answers: “At what distances is particle B most likely to be found around particle A?” The result is plotted as g(r) against distance r.
Identifies water or solvent shells around proteins, ions, ligands, membranes, or functional groups.
Shows whether atoms or groups prefer particular separation distances.
Helps estimate how many neighbors surround a reference particle within a defined shell.
Choose atom/group A as reference and atom/group B as target.
For each frame, calculate distances from every reference particle to target particles under periodic boundary conditions.
Distances are placed into small radial bins of thickness Δr.
The observed counts are divided by the expected number in an ideal uniform distribution.
The final g(r) curve is the time-averaged radial distribution.
Change preferred distance and shell sharpness.
The x-axis position of a peak gives the preferred separation distance between the selected groups.
A taller peak indicates stronger local enrichment or more ordered packing, but not necessarily stronger binding energy.
A narrow peak suggests a well-defined distance; a broad peak indicates a wider distribution and greater structural variability.
The first minimum after the first peak is commonly used as the outer boundary of the first coordination shell.
For a homogeneous bulk liquid, g(r) tends toward 1 at large r. In confined or heterogeneous systems this may not occur cleanly.
N(r) = 4πρ ∫₀ʳ g(r′)r′²dr′
The coordination number counts the average number of target particles around a reference particle up to distance r. Usually, r is chosen at the first minimum after the first RDF peak.
Peak height indicates local probability enrichment, not directly interaction energy.
RDFs from different atom groups answer different structural questions and should not be compared casually.
Maximum reliable r is limited by the simulation box. Poor PBC handling can distort pair distances.
Very coarse bins hide structure; very fine bins create noisy curves.
That expectation is valid mainly for homogeneous bulk systems. Membranes, interfaces, pores, and finite clusters can behave differently.
gmx rdf -s md.tpr -f md.xtc -n index.ndx -o rdf.xvg -cn coordination.xvg
Choose the reference group and target group carefully. Custom groups can be prepared using gmx make_ndx or gmx select.
gmx rdf -s md.tpr -f md.xtc -ref 'group REF' -sel 'group TARGET' -bin 0.002 -rmax 1.5 -o rdf_ref_target.xvg -cn cn_ref_target.xvg
RDF describes how particle density changes with radial distance around a reference. Peaks reveal preferred separations and shells, while integration provides coordination numbers. RDF should be combined with structural visualization, contact analysis, hydrogen bonds, orientation metrics, and energetic analyses.
Educational content for AMRA-LAB Computational Analyses · RDF module