Skip to content

Commit

Permalink
fixed carbons according to new interface
Browse files Browse the repository at this point in the history
  • Loading branch information
freude committed May 21, 2021
1 parent c7a37cd commit 9d9f7f4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/carbons.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def graphene_third_nearest_neighbour_with_overlaps():

# --------------------------- Hamiltonian -------------------------

h = tb.Hamiltonian(xyz=coords, nn_distance=3.1, comp_overlap=True)
h.initialize(radial_dep)
h = tb.Hamiltonian(xyz=coords, nn_distance=[1.5, 2.5, 3.1], comp_overlap=True)
h.initialize()
h.set_periodic_bc(period)

band_structure = np.zeros((sum(num_points), h.h_matrix.shape[0]))
Expand Down Expand Up @@ -191,8 +191,8 @@ def graphene_nanoribbons_zigzag():

# --------------------------- Hamiltonian -------------------------

h = tb.Hamiltonian(xyz=coords, nn_distance=3.1, comp_overlap=True)
h.initialize(radial_dep)
h = tb.Hamiltonian(xyz=coords, nn_distance=[1.5, 2.5, 3.1], comp_overlap=True)
h.initialize()
h.set_periodic_bc(period)

k_points = np.linspace(0.0, np.pi/period[0][1], 20)
Expand Down Expand Up @@ -256,8 +256,8 @@ def graphene_nanoribbons_armchair():

# --------------------------- Hamiltonian -------------------------

h = tb.Hamiltonian(xyz=coords, nn_distance=3.1, comp_overlap=True)
h.initialize(radial_dep)
h = tb.Hamiltonian(xyz=coords, nn_distance=[1.5, 2.5, 3.1], comp_overlap=True)
h.initialize()
h.set_periodic_bc(period)

k_points = np.linspace(0.0, np.pi/period[0][1], 20)
Expand Down

0 comments on commit 9d9f7f4

Please sign in to comment.