Author Topic: RDF in two dimensions  (Read 296 times)

gaurav

  • Newbie
  • *
  • Posts: 2
RDF in two dimensions
« on: January 18, 2019, 04:20:28 PM »
Hi all,
I'm trying to obtain partial 2D RDFs for different z in my system. So, for e.g. my system is 10*10*20. I would like to obtain RDFs for each z=0 , z=4 and so on. I'd appreciate if someone could help me with this.
Cheers,
Gaurav

Constanze Kalcher

  • Administrator
  • Sr. Member
  • *****
  • Posts: 299
Re: RDF in two dimensions
« Reply #1 on: January 18, 2019, 05:25:07 PM »
Hi,

this sounds like this can be achieved with a python script modifier, or a small batch script, please also see the documentation about running scripts:
http://www.ovito.org/manual_testing/python/introduction/running.html

What you would have to do is create a selection of atoms based on the z-coordinate and then use only those atoms in your analysis. As a starting point
have a look at the CutoffNeighborFinder function:
http://www.ovito.org/manual_testing/python/modules/ovito_data.html#ovito.data.CutoffNeighborFinder.

-Constanze

gaurav

  • Newbie
  • *
  • Posts: 2
Re: RDF in two dimensions
« Reply #2 on: January 18, 2019, 10:20:06 PM »
Thanks Costanze!
Cheers,
Gaurav