Page 1 of 1

rdf.pl

Posted: Fri Mar 06, 2009 7:42 am
by xhaiyan
After the rdf.pl script file is exceuted, there is no STDOUT file is generated (usage: interpolate.pl (POSCAR 1) (POSCAR 2) (fraction)
output: POSCAR.out file, to STDOUT) and only the Distance and the the Corresponding Neighbors are given on the screen.
My question is that in this case how to get the RDF plot? The X axis is the distance and the Y axis the corresponding total number of the neighbors, right?
Thanks.

Re: rdf.pl

Posted: Fri Mar 06, 2009 2:50 pm
by dano
radial distribution function
usage: rdf.pl <POSCAR filename> <atom to measure from> <bin size in Angstroms>

The output printed to the screen is but can be piped to a file and has the format
distance, ( frequency ) : list of atoms included in bin

You can plot a histogram of the rdf by then using the distance as X and the frequency as Y.
For a quick qualitative preview what the graph would look like, look at the output to screen sideways.

Re: rdf.pl

Posted: Sat Mar 07, 2009 2:16 am
by xhaiyan
Dear Dano,
Now I understand. Thank you very much.