Skip to content

Commit

Permalink
fix graphene (redo)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Jan 26, 2024
1 parent 3aaa3b8 commit 8c18a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/presets/hamiltonians.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module HamiltonianPresets

using Quantica, LinearAlgebra

function graphene(; a0 = 0.246, range = neighbors(1), t0 = 2.7, β = 3, dim = 2, names = (:A, :B), kw...)
function graphene(; a0 = 0.246, range = neighbors(1), t0 = 2.7, β = 3, dim = 2, type = Float64, names = (:A, :B), kw...)
lat = LatticePresets.honeycomb(; a0, dim, type, names)
h = hamiltonian(lat,
hopping((r, dr) -> t0 * exp(-β*(sqrt(3) * norm(dr)/a0 - 1)) * I, range = range); kw...)
Expand All @@ -17,7 +17,7 @@ function twisted_bilayer_graphene(;
twistindex = 1, twistindices = (twistindex, 1), a0 = 0.246,
interlayerdistance = 1.36a0, rangeintralayer = neighbors(1), rangeinterlayer = 4a0/sqrt(3),
hopintra = 2.70 * I, hopinter = 0.48, modelintra = hopping(hopintra, range = rangeintralayer),
names = (:Ab, :Bb, :At, :Bt),
type = Float64, names = (:Ab, :Bb, :At, :Bt),
kw...)

(m, r) = twistindices
Expand Down

0 comments on commit 8c18a89

Please sign in to comment.