Concatenating multiple calculations¶
Multiple PROCAR files from multiple DFT calculations can be combined with this utility. This utility is particularly useful in cases of large systems, where one can split the bandstructure calculations along different high-symmetry directions in BZ, and then concatenate the PROCAR files for each separate \(k\)-paths, and finally plot the full bandstructure in a single plot. The following command concatenates the PROCAR files obtained from three separate bandstructure calculations done along \(\Gamma-K\), \(K-M\), and \(M-\Gamma\) \(k\)-path in hexagonal Brillouin zone.
Usage:
pyprocar.cat(['PROCAR_G-K','PROCAR_K-M','PROCAR_M-G'], 'PROCAR_merged', gz=False, mergeparallel = False, fixformat = False)
If the PROCARs are in a compressed .gz file, set gz=True
.
When running Abinit in parallel the PROCAR is split into multiple files. To merge these files, set mergeparallel=True
. To fix formatting errors in Abinit PROCARs (spin directions not seperated, total projections not calculated) set fixformat=True
as well.
-
pyprocar.scriptCat.
cat
(inFiles, outFile, gz=False, mergeparallel=False, fixformat=False)¶ This module concatenates multiple PROCARs. set fixparallel = True for merging PROCARs generated from parallel Abinit calculations.