https://github.com/romerogroup/pyprocar
Raw File
Tip revision: 64247e834c40be330a7002707c049c0f20fa7334 authored by uthpalah on 04 June 2019, 20:49:45 UTC
gzip and phase parsing fix
Tip revision: 64247e8
unfold.rst
Band unfolding
==============

Often times, we need to perform DFT calculations for a supercell geometry rather than the primitive cell. In such cases the band structure becomes quite sophisticated due to the folding of the BZ, and it is difficult to compare the band structure of supercell with that of the primitive cell. The purpose of the band unfolding scheme is to represent the bands within the primitive cell BZ. By calculating the unfolding weight function and plotting the fat bands with the line width proportional to the weight, the unfolded bands can be highlighted. 


Usage:
First, calculate the band structure in the primitive cell BZ. The PROCAR should be produced with the phase factor included, by setting ``LORBIT=12`` in VASP.

Then the unfold module can be used to plot the unfolded band as follows::

	import numpy as np
	pyprocar.unfold(
	        fname='PROCAR',
	        poscar='POSCAR',
	        outcar='OUTCAR',
	        supercell_matrix=np.diag([2, 2, 2]),
	        efermi=None,
	        shift_efermi=True,
	        elimit=(-5, 15),
	        kticks=[0, 36, 54, 86, 110, 147, 165, 199],
	        knames=['$\Gamma$', 'K', 'M', '$\Gamma$', 'A', 'H', 'L', 'A'],
	        print_kpts=False,
	        show_band=True,
	        savefig='unfolded_band.png')
back to top