Auteng
- 20
- 1
Dear friends
How can i calculate RDF(radial distribution function)?
Thanks
How can i calculate RDF(radial distribution function)?
Thanks
The discussion revolves around the calculation of the Radial Distribution Function (RDF), focusing on its theoretical formulation, practical computation, and the interpretation of results. Participants explore various aspects of RDF, including statistical considerations, normalization methods, and the implications of particle distribution in simulations.
Participants express differing views on how to compute RDF, particularly regarding whether to average over all particles or focus on individual particles. There is no consensus on the optimal method for calculating RDF or the interpretation of certain mathematical components.
Participants note that the RDF calculations depend on the number of particles and the specific definitions used, which may lead to variations in results. The discussion also highlights the importance of statistical considerations in RDF computation.
Purely statistics. Instead of a cube, take a sphere and use a higher number of particles. You should realize that 8 particles in a bin is ##\pm\sqrt8## ! If you want a noise band of 1%, make sure that even in the higher ##r## bins there are at least 10000 particles per bin !Auteng said:Why it is not smooth
From where you nicked the pictureThe RDF is usually determined by calculating the distance between all particle pairs and binning them into a histogram. The histogram is then normalized with respect to an ideal gas, where particle histograms are completely uncorrelated. For three dimensions, this normalization is the number density of the system multiplied by the volume of the spherical shell, which mathematically can be expressed as ##{\displaystyle g(r)_{I}=4\pi r^{2}\rho dr}##, where ##{\displaystyle \rho }## is the number density.
Not to be confused with the Dirac delta function, ...
Can't read it. What is the dimension of particleateachbin ?Auteng said:I write the RDF formula:
$$g(r)=\frac{\frac{particle at each bin} {4 \pi r^2}} {\frac{total number of atoms} {V total}}$$
But i don't understand why the following link two times divided it by N. I think we should divide by N one time according to the formula that i have wrote...
http://www.physics.emory.edu/faculty/weeks//idl/gofr2.html
And remember: that is ##g(r)dr##, not ##g(r)## -- check dimensionsAuteng said:particleateachbin=particle at each bin(particles between r , r+dr)
totalnumberofatoms=total number of atoms(N)
For three dimensions, this normalization is the number density of the system multiplied by the volume of the spherical shell, which mathematically can be expressed as ##{\displaystyle g(r)_{I}=4\pi r^{2}\rho dr}##, where ##{\displaystyle \rho }## is the number density.
(same as post #5). Do you expect a difference ?Auteng said:I think i should take average over all of particles...??!
Is that a question ? After all, it's your calculation: you should know that better than anyone elseWhat i write is for one particle...?!![]()