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

Fermi3D #24

Closed
warda-rahim opened this issue Jan 31, 2020 · 5 comments
Closed

Fermi3D #24

warda-rahim opened this issue Jan 31, 2020 · 5 comments

Comments

@warda-rahim
Copy link

Hi,
I have been trying to plot 3D fermi surface using my PROCAR and OUTCAR from a VASP hybrid band structure calculation. Pyprocar.repair works fine. However, when I try pyrocar.fermi3D, it gives me the error shown below:

Plotting band 0
Traceback (most recent call last):
  File "/home/zccappr/.local/bin/procar", line 815, in <module>
    args.func(args)
  File "/home/zccappr/.local/bin/procar", line 120, in call_fermi3D
    kwargs = args.kwargs)
  File "/home/zccappr/.local/lib/python3.6/site-packages/pyprocar/scriptFermi3D.py", line 463, in fermi3D
    mapped_func,kpoint_matrix = mapping_func(kvector,eigen)
  File "/home/zccappr/.local/lib/python3.6/site-packages/pyprocar/scriptFermi3D.py", line 54, in mapping_func
    if len(bands[tot_cond]) != 0 :
IndexError: boolean index did not match indexed array along dimension 0; dimension is 304 but corresponding boolean dimension is 311

I tried it with different structures and for each I got the same error with a difference of 7 between the numbers in IndexError: boolean index did not match indexed array along dimension 0; dimension is 304 but corresponding boolean dimension is 311.

I am using pyprocar.fermi3D(PROCAR, OUTCAR, bands=-1, scale=1, mode='plain', st=False)
Secondly, for some reason it is also finding the wrong number of ions. I have 24 ions in my POSCAR but it finds 25.
I am attaching my PROCAR, OUTCAR, POSCAR and KPOINTS files.

PROCAR.zip
OUTCAR.zip
POSCAR.zip
KPOINTS.zip

Thank you.

@petavazohi
Copy link
Member

You need to turn off the symmetry in your calculation. set ISYM = -1

@petavazohi
Copy link
Member

also do not use a Gamma centered K-mesh

@warda-rahim
Copy link
Author

warda-rahim commented Mar 4, 2020 via email

@petavazohi
Copy link
Member

The way the Gamma centered kmesh is generated is usually similar to this (-0.45,-0.4,...,0,...,0.45,0.5). Now the sampling of k-space is not symmetric. While this is sampling the whole BZ, the fermi surface generated will be covering some parts from the 2nd BZ in the positive side of the K-space and missing the same parts from the 1st BZ in the negative side. We have a function in the Fermi3D script that symmetrizes the sampling but this usually leads to unreal artifacts on the edges of the BZ. The best option is to use a Monkhost-Pack mesh. Is there a specific reason you want to use Gamma centered?

@warda-rahim
Copy link
Author

warda-rahim commented Mar 10, 2020 via email

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

2 participants