Plotting non colinear dos in Quantum Espresso#

Plotting non colinear dos in Quantum Espresso.

First download the example files with the code below. Then replace data_dir below.

Downloading example#
 data_dir = pyprocar.download_example(save_dir='',
                             material='Fe',
                             code='qe',
                             spin_calc_type='non-colinear',
                             calc_type='dos')

importing pyprocar and specifying local data_dir

import os
import pyprocar

data_dir = f"{pyprocar.utils.ROOT}{os.sep}data{os.sep}examples{os.sep}Fe{os.sep}qe{os.sep}non-colinear{os.sep}dos"

Parametric mode#

Quantum Espresso expresses the projections in the coupled basis, therefore orbitals takes different meanings. For details on the meaning of the indices of the atomic projection please refer to the user guide :ref:’atomic_projections’

atoms=[0]
spins=[0]
orbitals=[8,9,10,11,12,13,14,15,16,17]

pyprocar.dosplot(
                code='qe',
                mode='parametric',
                fermi=18.0536,
                atoms=atoms,
                orbitals=orbitals,
                spins=spins,
                dirname=data_dir)
plot noncolinear dos qe
            --------------------------------------------------------
            There are additional plot options that are defined in a configuration file.
            You can change these configurations by passing the keyword argument to the function
            To print a list of plot options set print_plot_opts=True

            Here is a list modes : plain , parametric , parametric_line , stack , stack_orbitals , stack_species
            --------------------------------------------------------

(<Figure size 900x600 with 2 Axes>, <Axes: xlabel='Energy - E$_F$ (eV)', ylabel='DOS'>)

Total running time of the script: ( 0 minutes 21.637 seconds)

Gallery generated by Sphinx-Gallery