Monday, September 30, 2013

Generating PARCHG

Quick Description:  Partial charge density  is (mathematically) the squared eigenstate for a given k and eigenvalue. For a given band, this is essentially the same as the local density of states. In its final form, the PARCHG file will have units of electrons (charge density * the volume of the unit cell). Summing up the local density of states for the eigenvalues specified at the corresponding band will give the band-decomposed partial charge density. Visually, this allows you to see clouds (isosurfaces) of charge that fall into a specified energy range. If done correctly, the top view of this should be fairly similar (but sharper and cleaner) to what you view via STM.

(example of don't-remember-what-but-it-gives-you-an-idea)

The Point: You need this file to do simulated STS and STM.

Prerequisites: An optimized job with a preconverged WAVECAR. You will need to resubmit, and you may consider creating a new folder for this job using the new atomic coordinates (so change CONTCAR to POSCAR).

Notes: This is a very fast calculation, so the majority of your work has already been done. For more information, check here.

You'll need to add some more lines to your INCAR file, and in particular you care about setting the following lines (which you can just copy/paste into your file):
ISTART = 1
LWAVE=.FALSE.
LPARD=.TRUE.
LCHARG=.TRUE.
EINT=-1 0
NBMOD=-3 
Once you have set these, you're ready to submit a job as you normally would.

In the case shown above, the EINT setting specifies to include electrons who energies ranges from -1 V up to the Fermi energy. The negative sign indicates that you are looking at occupied states of the system (and for unoccupied, you would use a positive number). The NBMOD setting specifies that the Fermi energy is treated as being 0 in energy. These energies refer to the voltage bias that you would have been scanning at, and it is common to use a higher (in absolute magnitude) bias.  In this case, the presumption of the bias would be -1 V, a fairly common parameter, and so the treat the tip as sampling electrons in the range from -1 V to 0 V.

Alternatively, if you specifically want certain "bands", indexed the same way they are in the EIGENVAL file, you would use:
LPARD=.TRUE.  #calculate partial charge density
IBAND= 1 2 3 5 10 20    #indexes of bands to be included in partial charge density
For your specific case you would change EINT or IBAND according to what you need.  And, if you look at the manual link above, you'll see there are other variations as well.

A caveat from Jon: "Now, all that said... there is one additionally confusing thing which I think people generally ignore.  The energies that come out of DFT are the "Kohn-Sham energies" which don't necessarily match the real-life electron energies... though people have found you can re-scale them to match correctly.  We always ignore that (we don't rescale or anything... and without having more information there really isn't a way to do so) - so it's just an extra tidbit of knowledge that you can't really do anything about and it can just sit in the back of your mind and nag at you."

7 comments:

  1. Hi, I followed the steps as mentioned in the notes and generated a PARCHG file for the energy range as shown above !! I am getting a huge file of possibly 200,000 lines !! How can I read the data from the file , what does they imply ?
    I need to evaluate partial charges in some specific bands !!

    ReplyDelete
    Replies
    1. The represent the electron densities in each point of space.
      As noted above, you can use VESTA to visualize this, or HIVE-STM (https://dannyvanpoucke.be/hive-stm-en/) in case of STM simulations.

      Delete
  2. I need to plot the planar average of PARCHG along x-y plane with respect to z axis of my supercell. My PARCHG consists of 40x40x280 grid points. I am not sure how the charge density is written? Can someone suggest a script?

    ReplyDelete
  3. Vesta can do the post processing for you.

    ReplyDelete
  4. Thank you, it was really useful.

    ReplyDelete
  5. Thank you so much for such explanation..

    But i want to plot charge density of a particular band at a particular k point. I am bit confused in setting "KPUSE" in vasp.

    Kindly suggest me any possible way for this

    ReplyDelete