cut3d: how to choose spatial mesh for WFK file

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

Moderators: MMNSchmitt, gonze

Locked
elena.mol
Posts: 17
Joined: Wed Apr 21, 2010 1:05 pm

cut3d: how to choose spatial mesh for WFK file

Post by elena.mol » Mon May 14, 2012 11:39 am

Dear all,
is there a way to choose the spatial mesh used by cut3d to represent/plot wavefunctions from abinit WFK files, in particular, to make it less thick?
I'm using cut3d interactively, and this way i don't see any "variable/keyword" one can use to choose the spatial mesh. (i have only 1 k-point). Am i missing something?
The reason for my question is that, starting from big WFK files, i get quite big output files from cut3d, and this makes it difficult ( = slow! ) to visualize them (with XCrysDen): every command in XCrysDen, like rotating, changing the threshold for visualizing the wavefunction etc, takes a non-negligible amount of time (which doesn't happen with smaller files). Of course a thick mesh is good for final good quality figures to put in a paper, but something more coarse-grained would be better in a previous stage, when one has to make a lot of tests.
Is there a way to achieve this, maybe using cut3d with an input file where one specifies additional keywords?

thanks a lot
cheers
Elena

Elena Molteni
Department of Physics
University of Milan
via Celoria, 16
I-20133, Milan, Italy
and European Theoretical Spectroscopy Facility (ETSF)
http://www.etsf.eu

kaneod
Posts: 42
Joined: Wed Mar 10, 2010 11:47 am

Re: cut3d: how to choose spatial mesh for WFK file

Post by kaneod » Tue May 15, 2012 1:28 am

HI Elena,

I'd first point out that while XCrysden is great, both VMD and VESTA are better, especially on a Mac. They don't suffer the same kind of slowdowns you get from XCrysden when loading a very large .xsf file. Both can read .xsf and VMD can also read the animated version (.axsf). VESTA is great for quick visualization whereas VMD can be used to set up very complex graphical scenes with orbitals, molecular structure in various formats (ribbons, ball and stick, etc), plane cuts and so on all simultaneously. VMD can also be scripted using tk so you can, for example, have the same kind of publication-style graphic constructed from a set of different molecules.

Second, the grid density in cut3d is derived directly from the grid used by Abinit, which is in turn controlled by the cut-off energy ecut. Unfortunately you can't as yet restart using iscf -3 with a lower ecut, so you'd need to re-run your calculation with a lower ecut to get a lower number of grid points. You can also try to set ngfft directly in the input file but Abinit has a habit of ignoring you when you do this.

A better way would be to write a program that coarsens the WFK files. I've got a collection of electronic-structure related code at github.com/kaneod/Bits-of-Python-for-Physics that you might want to use as a basis, one of the functions in the fortran library libabitools.f90 parses a WFK file and returns it as an array. Feel free to hack it as necessary, it's all GPLv3'd. Another function (in the python library esc_lib.py) knows how to write XSF files, and also has an interface to WFK files although it's been a while since I worked on that interface and it might not presently be working.
Dr Kane O'Donnell
Postdoctoral Research Fellow
Australian Synchrotron

Locked