Molecular Dynamics, Modeling, Algorithms, Python, Programming.
would require all combinations of x,y,z axes and, lead to at least 3x3x3–1 = 26 images. As simple algorithm for calculating all the image atoms from a single atom in 2D with a cubic unit cell could be as follows: for x_shift: -1 to 1 for y_shift: -1 to 1 if x_shift == 0 and y_shift == 0 continue