Skip to content

definition of nearest image #1

@eminamitani

Description

@eminamitani

When I calculate the vector between the center atom (i) and target atom (j), sometimes, the sign is inverted from that is defined in GULP. This may be because the minimal image convention is not unique.
As an ad hoc fix, I create nearest.py that is direct interpretation from GULP fortran code.

But, the code is messy and I think there should be more efficient way to solve this problem.

And also, I don't know the exact reason, running all index cause different result (limiting lower triangle and setting Vij=-Vji fix this matter)

These unclear point should be resolved after tentative version works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions