Skip to content

Inconsistency with nearest neighbour query - Ovito vs Freud (triclinic box) #1244

Closed Answered by tommy-waltmann
Gareth-Bellinger asked this question in Support
Discussion options

You must be logged in to vote

Hi Gareth,

The box data in the provided script is not being read the same way in both functions. When I print the simbox_ovito variable in the ovito_analysis function, I get the following:

[[12.83660914  0.38911115 -1.75788069  0.        ]
 [ 0.46766025 11.32910487  1.0593323   0.        ]
 [-2.10589517  1.13820917 12.10909819  0.        ]]

However, when I print the box_data variable from the freud_analysis function, I get the following:

[[12.83660914  0.46766025 -2.10589517]
 [ 0.38911115 11.32910487  1.13820917]
 [-1.75788069  1.0593323  12.10909819]]

They appear to be the transpose of one another. When I transpose the box_data matrix, the number of neighbors is the same again.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gareth-Bellinger
Comment options

Answer selected by tommy-waltmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants