Computing potentials on a periodic bidimensional grid

The aim of this paper is to give an explicit computation for the potential generated by a dipole on a 2-dimensional grid such that the conductances on the vertical and horizontal edges have period 2.