dipc-cc / hubbard

Python tools for mean-field Hubbard models
https://dipc-cc.github.io/hubbard/
GNU Lesser General Public License v3.0
21 stars 8 forks source link

Generalized LDOS plots #88

Closed tfrederiksen closed 3 years ago

tfrederiksen commented 3 years ago

LDOS plot method is generalized to allow for projections in 1D and 2D along arbitrary directions.

For example, one can now do

import hubbard.plot as plot

H = HubbardHamiltonian(...)

d = [1, 1, 0] # real-space direction 
o = H.H.geom.xyz[0] # coordinate of first atom in the geometry

p1d = plot.LDOSmap(H, direction=d, origo=o, projection='1d')
p2d = plot.LDOSmap(H, direction=d, origo=o, projection='2d')
tfrederiksen commented 3 years ago

A possible further improvement to this method could be to consider exponential decay in real space instead of 1/x^2 (Lorentzian) as in the current implementation.

tfrederiksen commented 3 years ago

@zerothi, thanks a lot. No need to apologize, your comments are always highly appreciated and helpful to learn better practices! I'll address your point asap.

sofiasanz commented 3 years ago

Hi both! Thank you @tfrederiksen for this PR, I think it can go into the master branch.