cut3d: WFK analysis

MULTIBINIT, aTDEP, ANADDB, optics, cut3d, mrg* postprocessors

Moderators: MMNSchmitt, gonze

Locked
herman
Posts: 6
Joined: Sun Jan 09, 2011 10:55 pm

cut3d: WFK analysis

Post by herman » Mon Aug 12, 2013 1:59 pm

Dear All,

I used to analyse large *_WFK files (up to ~100 GB). It is often necessary for me to go through a large set of k-points and large set of bands. The "cut3d" script, however, enables to make an analysis for a single k-point and band at a time. Even if scripted, loading huge WFK file at every point is terribly time consuming. I was wondering if it is possible to iterate over all needed k-points and bands within cut3d without executing the program every time and loading WFK just for a single analysis? Maybe there's something I'm missing. Anyway - I would kindly appreciate a suggestion.

Best regards,
Michal H.

ljludwig
Posts: 77
Joined: Fri Jun 08, 2012 5:19 am

Re: cut3d: WFK analysis

Post by ljludwig » Wed Nov 27, 2013 5:14 am

I'm having the same problems, too!!! This is somewhat inconvenient since I presume we need the real space information and visualization...

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: cut3d: WFK analysis

Post by mverstra » Tue May 27, 2014 12:27 am

There is an outer loop check in cut3d, at the end of the analysis of a wf, which allows you to stay in the program with the wf loaded. If you do not change kpt spin etc... it tries to be clever and reuse what it can (all bands are stored in memory), but it often has to re-read the file to get to the data you want.

If you have some specific task you need to do over all bands or all k you might consider hacking the cut3d + wffile.F90 subroutines to make them do the looping you want. If you want to output things (visualization etc...) I hope for your sake you don't need all bands and k, otherwise it will create several hundred GB...

Your post needs to be more precise on what you want to analyze / extract...

Matthieu
Matthieu Verstraete
University of Liege, Belgium

herman
Posts: 6
Joined: Sun Jan 09, 2011 10:55 pm

Re: cut3d: WFK analysis

Post by herman » Tue Aug 19, 2014 2:45 pm

mverstra wrote:There is an outer loop check in cut3d, at the end of the analysis of a wf, which allows you to stay in the program with the wf loaded. If you do not change kpt spin etc... it tries to be clever and reuse what it can (all bands are stored in memory), but it often has to re-read the file to get to the data you want.

If you have some specific task you need to do over all bands or all k you might consider hacking the cut3d + wffile.F90 subroutines to make them do the looping you want. If you want to output things (visualization etc...) I hope for your sake you don't need all bands and k, otherwise it will create several hundred GB...

Your post needs to be more precise on what you want to analyze / extract...

Matthieu


Dear Matthieu,

Thank you for your reply - I do the job by splitting it into sets of bands and distributing them to somewhat stronger cluster machines. What I extract from the WFK file are the 3D indexed real and imaginary data for about 20 thousand points uniquely described by their k-point and energy. Indeed - it sometimes takes ~1 TB of disk space and more, but I do need those raw numbers for further post-processing. What helps a lot to reduce intensive disk I/O is loading a WFK file into a RAM disk and reading it from there using a shell script. Anyway - it seems to work just fine now.

I do appreciate your suggestion - I'll try to dig into the cut3d / wffile.F90 to improve my current solution.

Best regards,
Michal

Locked