How to read data from files POT and WFK for any bands

External optional components of Abinit (BigDFT, Wannier90...) and codes using/providing data from/to Abinit (AtomPAW, ONCVPSP, EXC, DP, Yambo...)

Moderators: ebousquet, bxu

Locked
Steve
Posts: 22
Joined: Tue Feb 08, 2011 8:48 pm

How to read data from files POT and WFK for any bands

Post by Steve » Wed Mar 06, 2013 6:23 pm

Dear colleagues, I have the following problem. Files _WFK and _POT contain wave functions and the potential of the crystal. I want to use for further calculations only the functions of the top of the valence band and the bottom of the conduction band and the potential of the crystal. Files _WFK and _POT obtained in PAW formalism and are written in hexadecimal numbers. In f90 files I do not yet able to find the appropriate recording format and converting data from decimal to hexadecimal.
With great respect to the developers of the program,
Steve.

User avatar
jzwanzig
Posts: 504
Joined: Mon Aug 17, 2009 9:25 am

Re: How to read data from files POT and WFK for any bands

Post by jzwanzig » Thu Mar 07, 2013 11:51 am

section 6.7 of the abinit help file gives the fortran code of how the wfk file is written, you can use that information to extract what you want.
Josef W. Zwanziger
Professor, Department of Chemistry
Canada Research Chair in NMR Studies of Materials
Dalhousie University
Halifax, NS B3H 4J3 Canada
jzwanzig@gmail.com

Steve
Posts: 22
Joined: Tue Feb 08, 2011 8:48 pm

Re: How to read data from files POT and WFK for any bands

Post by Steve » Sat Mar 09, 2013 11:19 am

Dear Professor J.W. Zwanziger,
thank you very much for your advice on the further use of the data files WFK and POT. However, I work in a Windows environment and do not have the possibility of recompiled projects, as is done in UNIX or Linux.
WFK and POT files are formatted in hexadecimal representation. It's good for compact storage.
I found a src directory
subroutine wfk_open_read (Wfk, fname, formeig, accesswff, fh, comm),
which is deeply incorporated in ABINIT project.
The way out of this situation would be for me in the presence of a decimal output files WFK and POT, as is done in the case of files of type DOS, EIG and others.
Is there such a possibility at all?
With respect and gratitude, Steve.

User avatar
jzwanzig
Posts: 504
Joined: Mon Aug 17, 2009 9:25 am

Re: How to read data from files POT and WFK for any bands

Post by jzwanzig » Sat Mar 09, 2013 1:23 pm

I believe the cut3d program, which is part of the abinit release, can save its output in various formats including ascii and others. With this routine you could read and then save your DEN file or various parts of the WFK file in other formats.
Josef W. Zwanziger
Professor, Department of Chemistry
Canada Research Chair in NMR Studies of Materials
Dalhousie University
Halifax, NS B3H 4J3 Canada
jzwanzig@gmail.com

Steve
Posts: 22
Joined: Tue Feb 08, 2011 8:48 pm

Re: How to read data from files POT and WFK for any bands

Post by Steve » Sun Mar 10, 2013 10:10 am

Dear Professor Joseph W. Zwanziger,
as you advised, I ran the program ecut3D, which is interactive.
It managed to do very well.
With respect, and gratitude and best wishes in your very interesting research, Steve.

Locked