The usage of get_site_orbital_dos(site: PeriodicSite, orbital: Orbital) #3742
Unanswered
xinting1118
asked this question in
Q&A
Replies: 1 comment
-
Hi @xinting1118 thanks for asking. Perhaps try this: from pymatgen.electronic_structure.core import Orbital
from pymatgen.io.vasp.outputs import Vasprun
vasprun = Vasprun("./vasprun.xml") # your vasprun.xml file
site_indexes = (0, 1, 2) # the indexes of sites you wish to extract
orbital = Orbital.s, # the orbital you wish to extract
complete_dos = vasprun.complete_dos
site_dos = []
for idx in site_indexes:
site_dos.append(complete_dos.get_site_orbital_dos(
site=complete_dos.structure[idx],
orbital=orbital,
)) Also the extracted new_dos = old_dos_0 + old_dos_1 Let me know how everything is going. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm problems encountered in the use of pymatgen. Ask how the get_site_orbital_dos(site: PeriodicSite, orbital: Orbital) function in the pymatgen.electronic_structur.dos module outputs the orbital projected density of state of several atoms. How to enter multiple atoms in Site parameter.
Beta Was this translation helpful? Give feedback.
All reactions