rdf namespace
#include <code/cpp/include/rdf.hpp>
Defines RDF-specific functions. This calculates the bulk radial distribution function.
The radial distribution function , or pair distribution function. It can be used to illuminate features of short-range and long-range order. The RDF is the probability of finding a particle at a distance of from a tagged reference particle, relative to that of an ideal gas. For a system of particles, the pair correlation function for pairs is:
The code essentially bins distances between pairs of particles, and normalizes the resulting histogram is normalized with respect to an ideal gas. The algorithm for the calculation of may be divided into the following steps:
- Initialization: The array is initialized to zero.
- Sampling: The histogram is added to for a particular bin, if the distance of a pair of atoms falls within the associated with the bin.
- Normalization: Every bin of the array is normalized by the product of the number of ideal gas particles in that bin, and the number of particles and number of frames.
Changelog
- Amrita Goswami [amrita16thaug646@gmail.com]; date modified: Oct 9, 2019