Author Topic: How to calculate the Solute or Solvent Center Voronoi Indices by OVITO script?  (Read 42 times)

FATEH

  • Newbie
  • *
  • Posts: 1
Hi! I am doing Simulation of the metallic glasses I want to anlyse the local Structure of the metallic glass. I want to compute solute and solvent centered VORONOI INDICES by OVITO Python script. How can I do this?

Constanze Kalcher

  • Administrator
  • Sr. Member
  • *****
  • Posts: 259
Hi,

with the help of the Voronoi analysis modifier you can compute the Voronoi indices of the Voronoi cell of each atom, which are stored as individual particle property.
http://ovito.org/manual/particles.modifiers.voronoi_analysis.html
Analogous to the procedure in the GUI, in a python script you would simply add the Voronoi analysis modifier to your pipeline and set the option "compute_indices=True".
http://ovito.org/manual/python/modules/ovito_modifiers.html#ovito.modifiers.VoronoiAnalysisModifier

Also, there is a ready-to-use code example in the manual which shows you how to calculate the distribution of Voronoi polyhedra in your metallic glass:
http://ovito.org/manual/python/introduction/examples.html

In order to distinguish between different particle types of the center atoms of each coordination polyhedron you can e.g. create a selection based on their particle type.

-Constanze