Skip to content
Snippets Groups Projects
Commit a13b6d80 authored by Christoph Groth's avatar Christoph Groth
Browse files

run generate-diffs

parent e5b728cf
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
from cmath import exp
import numpy as np
import kwant
@@ -68,40 +69,56 @@
@@ -68,24 +69,39 @@
energies.append(ev)
......@@ -54,7 +54,7 @@
# Calculate the wave functions in the system.
ham_mat = syst.hamiltonian_submatrix(sparse=True)
evecs = sla.eigsh(ham_mat, k=20, which='SM')[1]
@@ -93,15 +109,16 @@
# Calculate and plot the local current of the 10th eigenmode.
J = kwant.operator.Current(syst)
current = J(evecs[:, 9])
......
......@@ -84,8 +84,8 @@
+ file_name='kpm_dos_acc'
+ )
# we supply the *total* number of moments and sampling points
spectrum.increase_accuracy(num_moments=200, num_rand_vecs=5)
spectrum.add_moments(100)
spectrum.add_vectors(5)
@@ -110,7 +129,9 @@
plot_dos([
('density', original_dos),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment