Author Topic: calculate radial distribution function and structure factor from VASP output  (Read 492 times)


  • Newbie
  • *
  • Posts: 1

I noticed that the latest developer version of OVITO can calculate partial radial distribution function. I wondered how to write python script to calculate averaged RDF from multiple configurations from MD.

My second question is how to calculate the neutron/xray structure factor from RDF. From the online document of the developer version, it was mentioned structure factor can be output with RDF. Please let me know how to do it.


Constanze Kalcher

  • Administrator
  • Sr. Member
  • *****
  • Posts: 301
Hi Zhi-Gang,

in this topic it was discussed how to average different histograms,,
you can follow a similar approach.

If you want to do it without the GUI, here is an example script for a batch script that calculates time-averaged RDF's:

The structure factor is the Fourier transform of the radial distribution function, right? So you could write a python script (you don't even need ovitos for that)
 that post-processes your radial distribution function.

« Last Edit: February 08, 2019, 11:46:19 AM by Constanze Kalcher »