30 Apr
2015
30 Apr
'15
2:47 p.m.
Dear Christoph, I use the following construction to connect the incommensurate lattices: lat_e (graphene) and lat_e1 (square) for x in list(lat_e1.shape(rectangle1, (0, 0))()): for neighbour in lat_e.sublattices[0].n_closest(x.pos): sys[(x, lat_e.sublattices[0](*neighbour))] = t01 for neighbour in lat_e.sublattices[1].n_closest(x.pos): sys[(x, lat_e.sublattices[1](*neighbour))] = t01 I hope it's clear why I want to improve n_closest Probably I can do that myself. The above construction may indeed be in the core of readymade function to connect the two lattices. Best wishes, Sergey