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

Fermi-KPOINTS.py #5

Closed
flower0226 opened this issue Nov 1, 2018 · 1 comment
Closed

Fermi-KPOINTS.py #5

flower0226 opened this issue Nov 1, 2018 · 1 comment

Comments

@flower0226
Copy link

the KPOINTS i got from this script is like this (use default kx ky kz) :

1 k-points for fermi-surface. K-mesh of 9x9x9
2 1000
3 Reciprocal
4 0.0000 0.0000 0.0000 1
5 0.0000 0.0000 0.0000 1
6 0.0000 0.0000 0.0000 1
7 0.0000 0.0000 0.0000 1
8 0.0000 0.0000 0.0000 1
9 0.0000 0.0000 0.0000 1
10 0.0000 0.0000 0.0000 1
11 0.0000 0.0000 0.0000 1
12 0.0000 0.0000 0.0000 1
13 0.0000 0.0000 1.0000 1
14 0.0000 0.0000 0.0000 1
15 0.0000 0.0000 0.0000 1
16 0.0000 0.0000 0.0000 1
17 0.0000 0.0000 0.0000 1
18 0.0000 0.0000 0.0000 1
19 0.0000 0.0000 0.0000 1
20 0.0000 0.0000 0.0000 1
21 0.0000 0.0000 0.0000 1
22 0.0000 0.0000 0.0000 1
23 0.0000 0.0000 1.0000 1
24 0.0000 0.0000 0.0000 1
25 0.0000 0.0000 0.0000 1
26 0.0000 0.0000 0.0000 1

I'm not quite sure if it is correct, seems like very different from the example one.
Expected to receive any kind of respond! Tks!

@antonvF
Copy link

antonvF commented Feb 12, 2019

Hi! I came across the same problem. Seems to be the issue with python converting coordinated to integers automatically. So, just change this line in script:
data_array[i*(ky+1)*(kz+1)+j*(kz+1)+k,:-1]=[i/kx, j/ky, k/kz]
to this one:
data_array[i*(ky+1)*(kz+1)+j*(kz+1)+k,:-1]=[i*1.0/kx, j*1.0/ky, k*1.0/kz]
It should work.

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

No branches or pull requests

3 participants