zerothi / sisl

Electronic structure Python package for post analysis and large scale tight-binding DFT/NEGF calculations
https://zerothi.github.io/sisl
Mozilla Public License 2.0
182 stars 58 forks source link

eigenvalues from hamiltonian in presence of magnetic field #782

Closed masume70 closed 3 months ago

masume70 commented 4 months ago

Hi, Thank you for providing example TB_07, however it is not completely straightforward for me! I want to extract eigenvalues of graphene hamiltonian in presence of the magnetic field. Thanks for your help in advanced Masoumeh Alihosseini

zerothi commented 4 months ago

Hi, I don't fully know how to calculate the eigenvalues for systems with magnetic fields (I have never done this). The problem is that the magnetic field are in the periodic case, whether or not one can do it I don't know. If you find details in litterature, that would be beneficial. :)

zerothi commented 3 months ago

Let me finalize this:

The Hamiltonian, I guess, should still be Hermitian, so you should be able to do something like this:

H = si.Hamiltonian(...)
# edit H such that it has magnetization
es = H.eigenstate()

Until there is a more specific use-case, or an example, I will close this issue, thanks for opening it up!