dos
Classes for reading/manipulating projwfc.x/dos.x (P)DOS files
EspressoDos(energies, tdos, idos=None, summed_pdos=None, summed_pdos_l=None, atomic_states=None, efermi=None, lsda=None, noncolinear=None, lspinorb=None)
Bases: MSONable
Class for representing DOS data from a dos.x or projwfc.x calculation
unconventional. Use the class method constructors from_filpdos (to parse projwfc.x outputs) or from_fildos (to parse dos.x output) instead.
PARAMETER | DESCRIPTION |
---|---|
energies
|
Energies in eV. Not w.r.t the Fermi level.
TYPE:
|
tdos
|
Total DOS.
TYPE:
|
idos
|
Integrated DOS.
TYPE:
|
summed_pdos
|
Summed PDOS across all states \((l,m)\) or \((l,j, m_j)\) etc. Should be the same as the total DOS but there might be minor rounding differences. This quantity is spin polarized in noncolinear calculations without SOC but tdos is not. This is essentially \(\sum_{l,m} \mathrm{PDOS}_{l,m}\) or \(\sum_{l,j,m_j} \mathrm{PDOS}_{l,j,{m_j}}\).
TYPE:
|
summed_pdos_l
|
Summed pDOS for each orbital, pretty much just \(\sum_{m} \mathrm{PDOS}_{l,m}\) or \(\sum_{m_j} \mathrm{PDOS}_{l,j,{m_j}}\). Order is not guaranteed.
TYPE:
|
atomic_states
|
List of AtomicState objects. Order is guaranteed to be the same as projwfc.x output.
TYPE:
|
efermi
|
Fermi energy. # TODO: beter default
TYPE:
|
lsda
|
Whether the calculation is spin polarized. None indicates unknown.
TYPE:
|
noncolinear
|
Whether the calculation is noncolinear (with or without SOC). None indicates unknown.
TYPE:
|
lspinorb
|
Whether the calculation includes spin-orbit coupling. None indicates unknown.
TYPE:
|
ATTRIBUTE | DESCRIPTION |
---|---|
energies |
Energies in eV. Not w.r.t the Fermi level.
TYPE:
|
tdos |
Total DOS.
TYPE:
|
idos |
Integrated DOS.
TYPE:
|
atomic_states |
Ordered list of AtomicState objects.
TYPE:
|
efermi |
Fermi energy.
TYPE:
|
lsda |
Whether the calculation is spin polarized.
TYPE:
|
noncolinear |
Whether the calculation is noncolinear.
TYPE:
|
lspinorb |
Whether the calculation includes spin-orbit coupling.
TYPE:
|
Source code in pymatgen/io/espresso/outputs/dos.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
from_filpdos(filpdos)
classmethod
Initialize an EspressoDos object from projwfc.x pdos files. This requires the filproj.pdos_tot and all filproj.pdos_atm#_wfc# files to be present.
PARAMETER | DESCRIPTION |
---|---|
filpdos
|
path to the filproj pdos file. Note that this is the same quantity labeled "filproj" in projwfc.x's input, so it's not a full filename. For example, filpdos="path/to/filpdos" will look for files like "path/to/filpdos.pdos_atm#_wfc#...".
TYPE:
|
Source code in pymatgen/io/espresso/outputs/dos.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
from_fildos(fildos)
classmethod
Constructs a Dos object from a fildos (dos.x) file
The format of Fildos is as follows (TDOS = total DOS, IDOS = integrated DOS):
-
Spin polarized:
Energy(ev) TDOS(up) TODS(dn) IDOS
-
Everything else:
Energy(ev) TDOS IDOS
PARAMETER | DESCRIPTION |
---|---|
fildos
|
path to the dos file. Same as the dos.x input.
TYPE:
|
Source code in pymatgen/io/espresso/outputs/dos.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
|
WrongDosFormatError
Bases: Exception
Raised when the DOS file format is not recognized