Sergey wrote:
It would be convenient to improve the method
kwant.lattice.Monatomic.n_closest
to include an argument "range"
or even two arguments: range_min = 0 and range_max so that it returns the sites within a range from the given point. This is useful to e.g. specify the hoppings between incommensurate lattices.
Sergey, your work involves connecting incommensurate lattices? Indeed, although a Kwant system can contain sites from many lattices, connecting incommensurate lattices is not specially supported in any way. I’m interested in discussing how to best connect incommensurate lattices in Kwant. If we can come up with something that seems useful I’m confident that eventually someone (maybe you? :-) will implement it for Kwant. The method Monatomic.n_closest works within a single monatomic Bravais lattice. Extending it to consider other lattices (which?) would not be consistent. I have other ideas, but we should start by discussing what we want to achieve, and not how to do it. Can you tell us more about the application that you have in mind? Christoph