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
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.ythe minimum image coordinate relative topair.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 dopair.y .- pair.xbut its not immediately clear to me.