I am making an MoS2 lattice but can add hoppings here is the error.
"""
ValueError: <Monatomic lattice 0> and <Monatomic lattice 1> are not compatible with delta=[0 0]
"""
here is my code.
a0 = 3.15
graphene = kwant.lattice.general ([(a0*1, 0, 0),(a0*np.sin(np.pi/6),a0*np.cos(np.pi/6), 0), (0, 0, 12.5)],
[(0, 0, 0),(0, a0*(1/sqrt(3)), 12.5)])
a, b = graphene.sublattices
def ribbona(pos):
x,y, z = pos
return (0<=x<=10 and 0<= y <=10 and 0<= z <= 1)
def ribbonb(pos):
x,y, z = pos
return (0<=x<=10 and 0<= y <=10 and 10< z <= 13)
def ribbonc(pos):
x,y, z = pos
return (0<=x<=10 and 0<= y <=10 and 24< z <= 26)
syst = kwant.Builder()
syst[b.shape(ribbona,(0,0, 0))] = 0
syst[a.shape(ribbonb,(0,0, 12))] = 0
syst[b.shape(ribbonc,(0,0, 25))] = 0
%matplotlib qt
hoppings = (((0,0),a,b),((0,1),a,b))
syst[[kwant.builder.HoppingKind(*hopping) for hopping in hoppings]] = -1
syst[a.neighbors()] = -1
syst[b.neighbors()] = -1
kwant.plotter.plot(syst, fig_size = (10, 10), site_size=0.18, site_lw=0.01, hop_lw=0.05);