Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interface with WannierBerri #1

Open
stepan-tsirkin opened this issue Jan 12, 2024 · 1 comment
Open

interface with WannierBerri #1

stepan-tsirkin opened this issue Jan 12, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@stepan-tsirkin
Copy link

Dear developers

@AntimoMarrazzo brought my attention to this package. From a quick look I am trying to understand what you are trying to do here

print('Reading Hamiltonian at Gamma point in Wannier gauge..')
grid = Grid(model, NK=model.NKFFT_recommended)
dK = 1. / grid.div
data = Data_K_R(model, dK, grid)
Ham_W_R = model.Ham_R.copy()
Ham_W_k = data.fft_R_to_k(Ham_W_R, hermitean=True)
ham = Ham_W_k[0,:,:]

I guess, you what to get the Gamma-point only, right? Then, computing a grid of size NK=model.NKFFT_recommended is an overhead. instead you may use NK=[1,1,1], dK=[0,0,0]

Why are you using dK = 1. / grid.div ? Well, in this case grid.div should be [1,1,1], and dK is defined modulo 1, so it is equivalent to [0,0,0], so in the end your implementation should work. but it looks unnecessary sophisticated.

Am I understanding correctly, or do you have smth different in mind?

@AntimoMarrazzo AntimoMarrazzo added the enhancement New feature or request label Jan 12, 2024
@roberta-favata
Copy link
Collaborator

Dear Stepan,
you understand correctly, we want to get the Gamma-point only.
I agree with your suggestion and I will implement it, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants