Important note:From yambo-3.4.1 the Kleinman-Bylander form factors are created with p2y. For some materials or observables (e.g. optical spectra of Cu), these terms are crucial to obtain correct results. Older versions of p2y instead does not create these factors. Therefore, unless you know better, you might be better off using a version 3.4.1 or above of p2y.
In brief, importing data from PWscf is done in two steps:
Please note that earlier versions of the code do not support PWscf versions later than 3.2.3, so be sure to use the latest tarball.
There is also an indirect method for converting from PWscf, explained here. However, this approach is obsolete and should not normally be used.
Although the default bin/p2y executable should work as is, various command line options are supported to help you during the conversion process. These are:
-h :Short Help -H :Long Help -N :Skip MPI initialization -F opt :XML index file name -O opt :Output directory -S :DataBases fragmentation -a real :Lattice constants rescaling factor -t :Force use of spatial inversion instead of time reversal -w :Force no wavefunctions -g :Force use of all available planewaves -v :Verbose wfc I/O reporting
Most of these are self explanatory, so just a few comments:
-F <opt> :XML index file name
Specify the name of the XML-like index file name. Usually you should not need to set this flag, since the default values are determined when you compile p2y. The default is data-file.xml.
-S :DataBases fragmentation
This option will generate subdirectories, by k-point and spin component, inside the SAVE directory. This is recommended for large systems with few k-points.
-v :Verbose wfc I/O reporting
This will force some extra reporting of the progress for reading and writing the wavefunctions, which can be useful to see if the conversion is working immediately.
-g :Force use of all available planewaves
If this flag is specified, all G-vectors used to describe the charge will be imported, which is much larger (8 times) than the number needed to describe the wavefunctions. Generally, importing all G-vectors will not be necessary.