Home▸Articles▸Chemistry & Materials

Radial Distribution Function in a Lennard-Jones Fluid: Understanding Molecular Packing

A powerful tool for studying the structure of liquids and solids at the molecular level.

mysimulator teamUpdated June 2026≈ 4 min read▶ Open the simulation

What is the Radial Distribution Function (g(r))?

The radial distribution function (g(r)) is a statistical measure that describes the probability of finding a molecule at a distance r from another molecule in a fluid. It provides insights into the local structure and packing of molecules, which are crucial for understanding phase behavior.

In a Lennard-Jones fluid, g(r) reveals how particles interact with their neighbors over different distances, showing distinct peaks that correspond to first-shell, second-shell, and higher-order neighbor distributions.

How Does the Radial Distribution Function Work?

The radial distribution function is calculated by averaging the number density of pairs of particles as a function of their separation distance. Mathematically, it can be expressed as g(r) = (N/2V) * (1/V) ∫∫ δ(|r - r'| - r) exp(-βU(r')) d^3r' d^3r'', where N is the number of particles, V is the volume, β is the inverse temperature, U(r') is the potential energy between two particles at distance r', and δ is the Dirac delta function.

By analyzing g(r), one can identify regions in phase space (temperature and density) where different structures dominate. For example, a sharp peak in g(r) near the first-shell distance indicates strong short-range order, typical of liquids or solids.

live demo · related simulation● LIVE

Why Does It Matter?

Understanding the radial distribution function is essential for predicting and controlling the properties of materials. For instance, it helps in designing new materials with specific mechanical, thermal, or electrical properties by manipulating their molecular packing.

In chemical engineering, g(r) can guide the development of more efficient catalysts and solvents, while in biophysics, it aids in understanding protein folding and membrane structure.

Real-World Examples

The radial distribution function has been used to study a wide range of systems, from simple fluids like water to complex biological molecules. For example, g(r) analysis has revealed the liquid-like behavior of proteins in solution and the crystalline structure of ice.

In materials science, it helps in optimizing the packing density of nanoparticles for drug delivery or electronic devices.

Frequently asked questions

What does a peak in g(r) indicate?

A peak in g(r) indicates strong short-range order between molecules, suggesting either liquid-like or solid-like structures depending on the system and temperature.

How can changing temperature affect the radial distribution function?

Changing temperature alters the kinetic energy of particles, which can shift the peaks in g(r) to different distances. Higher temperatures tend to broaden these peaks, indicating more disordered structures like gases or liquids at higher temperatures.

Can g(r) be used for all types of fluids?

Yes, but the interpretation may vary. For instance, in dense fluids close to a critical point, g(r) can show unusual behavior that requires careful analysis to understand the underlying physics.

What is the significance of the first-shell peak in g(r)?

The first-shell peak in g(r) represents the nearest neighbors of a particle and is crucial for understanding local structure. It can indicate crystalline order or liquid-like packing depending on its shape and position.

Try it live

Everything above runs in your browser — open Radial Distribution Function in a Lennard-Jones Fluid and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Radial Distribution Function in a Lennard-Jones Fluid simulation

What did you find?

Add reproduction steps (optional)