compute_rdf
This keyword is used to compute the radial distribution function (RDF) for all atoms or pairs of species. It works for both classical MD and PIMD. The results will be written to the rdf.out file.
Mathematical details
The RDF is proportional to the relative probability of finding atomic pairs at a distance around \(r\) in the system, and to a large extent, reflects the local structural information of the system. It is defined as
where \(dN (r, dr)\) represents the number of particle pairs with distances between \(r\) and \(r + dr\), \(V\) is the volume of the system, and \(N\) is the total number of particles in the system.
It is also possible to calculate the RDF between different element types. In a system with \(N_a\) atoms of type \(a\) and \(N_b\) atoms of type \(b\), \(g_{ab}(r)\) and \(g_{ba}(r)\) is defined as
where \(dN_{ab}(r, dr) = dN_{ba}(r, dr)\) is the number of \((a, b)\) particle pairs with distances between \(r\) and \(r + dr\).
Syntax
This keyword is used as follows:
compute_rdf <cutoff> <num_bins> <interval>
This means that the RDF calculations will be performed every interval steps, with num_bins data points evenly distributed from 0 to cutoff (in units of Ångstrom) in terms of the distance between atom pairs.
Starting from GPUMD-v4.9, there is no need to specify the atom pairs and the code will calculate the partial RDFs for all atom pairs.
Example
compute_rdf 8.0 400 1000 # Calculate all RDFs every 1000 MD steps with 400 data up to 8 Angstrom