Hello,
I have started to use Freud to compute voronoi diagrams and hexatic order parameters. I would like to know there is a straightforward way to calculate the order parameter psi_k by weighting the angle theta_ij between two neighbours by the length of their voronoi side, similarly to what done in these two papers
I have managed so far, following the documentation and the examples to calculate the hexatic order parameter and the voronoi lines but I am not sure if there is a way to pass the length of the voronoi sides to the compute class for the hexatic order parameter. The relevant lines for the calculation of the voronoi sides and for the hexatic order parameter are below and are similar to the examples provided to the documentation. Please let me know if you have any suggestions, or you could point to where I could start to look in the code to include this. Thanks.
Vor=voro.compute((box,atoms))
nlist = voro.nlist
line_data = np.asarray([[atoms[i],
atoms[i] + box.wrap(atoms[j] - atoms[i])]
for i, j in nlist])[:, :, :2]
hex_order = freud.order.Hexatic(k=6)
hex_order.compute(system=(box, atoms), neighbors={'num_neighbors': 6})