Obtain plane wave components of wfn at kpt
Posted: Wed Nov 06, 2013 8:19 pm
I would like to print out the plane wave components of a wave function at a particular k-point. I've tried several things so far, none of which do what I want. Here's what I've tried:
cut3d doesn't do what I want, because it prints out the wave function components on a grid in real space. I've read through the source, but I get confused.
I've tried to output the WFK files as ETSF_IO files using accesswff 3 and setting istwfk to 1 for all k-points, but for some reason this doesn't work.
I've tried to read the WFK file directly using python/struct.unpack, but I can't find a clear description of the format. Trying to pick off elements one at a time isn't working.
Any hints to what I should be doing? Thanks in advance.
cut3d doesn't do what I want, because it prints out the wave function components on a grid in real space. I've read through the source, but I get confused.
I've tried to output the WFK files as ETSF_IO files using accesswff 3 and setting istwfk to 1 for all k-points, but for some reason this doesn't work.
I've tried to read the WFK file directly using python/struct.unpack, but I can't find a clear description of the format. Trying to pick off elements one at a time isn't working.
Any hints to what I should be doing? Thanks in advance.