version 0.0.51
This commit is contained in:
9
Tutorial/04_some_models_in_the_reciprocal_space.py
Normal file
9
Tutorial/04_some_models_in_the_reciprocal_space.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import guan
|
||||
import numpy as np
|
||||
|
||||
# Hamiltonian of models in the reciprocal space / calculate band structures / plot figures
|
||||
k_array = np.linspace(-np.pi, np.pi, 100)
|
||||
eigenvalue_array = guan.calculate_eigenvalue_with_one_parameter(k_array, guan.hamiltonian_of_square_lattice_in_quasi_one_dimension)
|
||||
guan.plot(k_array, eigenvalue_array, xlabel='k', ylabel='E', type='-k')
|
||||
eigenvalue_array = guan.calculate_eigenvalue_with_one_parameter(k_array, guan.hamiltonian_of_graphene_with_zigzag_in_quasi_one_dimension)
|
||||
guan.plot(k_array, eigenvalue_array, xlabel='k', ylabel='E', type='-k')
|
||||
Reference in New Issue
Block a user