27 Oct
2019
27 Oct
'19
8:41 a.m.
Dear all,
I am trying to make an armchair nanoribbon as following:
import kwant
from math import sqrt
import matplotlib.pyplot as plt
import tinyarray
import numpy as np
import math
import cmath
#import scipy.linalg as la
import matplotlib
d=1.42;
a1=d*math.sqrt(3);
#on-site energy...................................................
t=-2.7;
latt = kwant.lattice.general([(0,a1),(a1*math.sqrt(3)/2,a1*0.5)],
[(-d/2,a1/2),(d/2,a1/2)])
a,b = latt.sublattices
syst= kwant.Builder()
def rectangle(pos):
x, y = pos
return -2.4*a1