How to set the K-points of band

57 views
Skip to first unread message

Yue Gu

unread,
Jun 19, 2022, 11:11:10 PM6/19/22
to DMFTwDFT
Dear developers:
I am now try to change the k-points for band structure.
In "postDMFT.py",  default for -kp is [0, 0, 0], [0.5, 0, 0], [0.5, 0.5, 0], [0, 0, 0], [0.5, 0.5, 0.5]], and default for -kn is ["$\Gamma$", "$X$", "$M$", "$\Gamma$", "$R$"].
So, I tried to use "postDMFT.py bands -sp -plotplain -kn ["$\Gamma$", "$Y$", "$S$", "$X$", "$\Gamma$"] -kp [[0, 0, 0], [0, 0.5, 0], [0.5, 0.5, 0], [0.5, 0, 0], [0, 0, 0]]" to calculate band. However, an error report tell me that "postDMFT.py bands: error: argument -kp/--kplist: invalid int value: '[[0,'"

How can I solve this problem?
Many thanks!

Uthpala Herath

unread,
Jun 20, 2022, 5:00:07 PM6/20/22
to Yue Gu, DMFTwDFT
Dear Yue, 

The best way to provide a k-path would be to use a KPOINTS file (as in VASP's bandstructure KPOINTS). 
You can place this file in the DMFT directory and then execute:

$postDMFT.py bands -plotplain -kpband 500 -rom 500 -autokp


Best,
Uthpala

--
You received this message because you are subscribed to the Google Groups "DMFTwDFT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dmftwdft+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dmftwdft/bba44a4f-e80a-4c4e-a11b-67ef854b83ccn%40googlegroups.com.


--
Uthpala Herath
Postdoctoral Associate
Department of Mechanical Engineering and Materials Science
Duke University
Durham, NC

Yue Gu

unread,
Jun 20, 2022, 9:43:23 PM6/20/22
to DMFTwDFT
Dear  Uthpala:

Many thanks for your suggestion!
I tried to place a KPOINTS file in DMFT  directory, but a new error report tell me:
Traceback (most recent call last):
  File "/share/apps/DMFTwDFT/DMFTwDFT-master/bin/postDMFT.py", line 1690, in <module>
    args.func(args)
  File "/share/apps/DMFTwDFT/DMFTwDFT-master/bin/postDMFT.py", line 742, in bands
    args.knames, ticks, discontinuities, args.kplist = self.readKPOINTS(args)
  File "/share/apps/DMFTwDFT/DMFTwDFT-master/bin/postDMFT.py", line 1490, in readKPOINTS
    tick_labels = np.array(re.findall("!\s*(.*)", KPmatrix[0]))
IndexError: list index out of range


Is any problem with my KPOINTS file? My KPOINTS is:
KPATH
  31
Line-Mode
Reciprocal
  0.00000000  0.00000000  0.00000000
  0.00000000  0.50000000  0.00000000

  0.00000000  0.50000000  0.00000000
  0.50000000  0.50000000  0.00000000

  0.50000000  0.50000000  0.00000000
  0.50000000  0.00000000  0.00000000

  0.50000000  0.00000000  0.00000000
  0.00000000  0.00000000  0.00000000

  0.00000000  0.00000000  0.00000000
  0.50000000  0.50000000  0.00000000


Best,
Yue Gu

Uthpala Herath

unread,
Jun 20, 2022, 10:05:43 PM6/20/22
to Yue Gu, DMFTwDFT
You need to add the labels for the points. 
Something like:

KPATH
  31
Line-Mode
Reciprocal
  0.00000000  0.00000000  0.00000000 !G
  0.00000000  0.50000000  0.00000000 !X

  0.00000000  0.50000000  0.00000000 !X
  0.50000000  0.50000000  0.00000000 !M

  0.50000000  0.50000000  0.00000000 !M
  0.50000000  0.00000000  0.00000000 !L

  0.50000000  0.00000000  0.00000000 !L
  0.00000000  0.00000000  0.00000000 !G

  0.00000000  0.00000000  0.00000000 !G
  0.50000000  0.50000000  0.00000000 !M


Yue Gu

unread,
Jun 21, 2022, 1:13:04 PM6/21/22
to DMFTwDFT
DearUthpala
 I tried a new kpoints :
KPATH
  31
Line-Mode
Reciprocal
  0.00000000  0.00000000  0.00000000 !G
  0.00000000  0.50000000  0.00000000 !Y

  0.00000000  0.50000000  0.00000000 !Y
  0.50000000  0.50000000  0.00000000 !S

  0.50000000  0.50000000  0.00000000 !S
  0.50000000  0.00000000  0.00000000 !X

  0.50000000  0.00000000  0.00000000 !X

  0.00000000  0.00000000  0.00000000 !G

  0.00000000  0.00000000  0.00000000 !G
  0.50000000  0.50000000  0.00000000 !S

But the error report does not change.
Maybe there are  some other problems?

Uthpala Herath

unread,
Jun 21, 2022, 2:02:46 PM6/21/22
to Yue Gu, DMFTwDFT
Dear Yue, 

That is strange. Could you please send me your DMFT directory and I will take a look. 

Thanks, 

Best,
Uthpala

Soumya Bhat

unread,
Jun 21, 2022, 2:40:07 PM6/21/22
to Yue Gu, DMFTwDFT, Uthpala Herath
Dear Yue,

Replacing the term "Reciprocal" with "reciprocal" in your KPOINTS file should solve this error.

Your KPOINTS file should be something like:

KPATH
  31
Line-Mode
reciprocal
  0.00000000  0.00000000  0.00000000 ! \Gamma
  0.00000000  0.50000000  0.00000000 ! X

  0.00000000  0.50000000  0.00000000 ! X
  0.50000000  0.50000000  0.00000000 ! M

  0.50000000  0.50000000  0.00000000 ! M
  0.50000000  0.00000000  0.00000000 ! L

  0.50000000  0.00000000  0.00000000 ! L
  0.00000000  0.00000000  0.00000000 ! \Gamma

  0.00000000  0.00000000  0.00000000 ! \Gamma
  0.50000000  0.50000000  0.00000000 ! M


Best,
Soumya

Soumya S. Bhat
Postdoctoral Researcher
Physics and Astronomy Department
West Virginia University
Email: soumy...@mail.wvu.edu; soumya...@gmail.com

From: dmft...@googlegroups.com <dmft...@googlegroups.com> on behalf of Uthpala Herath <ukh...@mix.wvu.edu>
Sent: Tuesday, June 21, 2022 2:02 PM
To: Yue Gu <boyg...@gmail.com>
Cc: DMFTwDFT <dmft...@googlegroups.com>
Subject: Re: How to set the K-points of band
 

Uthpala Herath

unread,
Jun 21, 2022, 3:19:07 PM6/21/22
to Soumya Bhat, Yue Gu, DMFTwDFT
Thanks, Soumya! I should fix this bug to accept both cases. 

Best,
Uthpala

Yue Gu

unread,
Jun 21, 2022, 9:19:52 PM6/21/22
to DMFTwDFT
Dear  Soumya and  Uthpala,
  
Now it can run successfully! Many thanks!

Best
Yue Gu

Uthpala Herath

unread,
Jun 22, 2022, 4:38:42 PM6/22/22
to Yue Gu, DMFTwDFT
Great! Glad to hear that. 

Best,
Uthpala

Reply all
Reply to author
Forward
0 new messages