Skip to content

Instantly share code, notes, and snippets.

@quantum-kite
Last active June 10, 2018 16:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save quantum-kite/4b7593e9aa082b1d242c5e6b2361c3f3 to your computer and use it in GitHub Desktop.
Graphene Lattice
"""Basic lattice specification for monolayer graphene with nearest neighbor"""
import matplotlib.pyplot as plt
import pybinding as pb
import math
a = 0.24595 # [nm] unit cell length
a_cc = 0.142 # [nm] carbon-carbon distance
t = -2.8 # [eV] nearest neighbour hopping
lat = pb.Lattice(a1=[a, 0], a2=[a / 2, a / 2 * math.sqrt(3)]) # make a lattice object
lat.add_sublattices(('A', [0, -a_cc / 2]), # add two unequivalent lattice sites
('B', [0, a_cc / 2]))
lat.add_hoppings(
# inside the main cell
([0, 0], 'A', 'B', t),
# between neighboring cells
([1, -1], 'A', 'B', t),
([0, -1], 'A', 'B', t)
)
lat.plot()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment