Skip to content

Documentation Clarification #175

@ejmeitz

Description

@ejmeitz

In the pairwise docs it says that the positions of the two atoms are minimum image adjusted. What does this mean exactly.

I think of minimum image as with respect to a central atom. So is pair.y the minimum image coordinate relative to pair.x. At the end of the day I'm just interested in getting the distance vector between the two atoms in a way that respects PBC/minimum image convention. I'm guessing I can just do pair.y .- pair.x but its not immediately clear to me.

function f(pair, output)
    # pair.i, pair.j: indices of the particles
    # pair.x, pair.y: coordinates (minimum-image adjusted)
    # pair.d: distance between particles
    # pair.d2: squared distance
    # update output
    return output
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions