This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Export phonon band structure data from the Materials Project API for visualization on the phonons web site (https://henriquemiranda.github.io/phononwebsite/phonon.html). | |
Author: Anubhav Jain (https://github.com/computron) | |
Related video tutorial on phonons: https://youtu.be/acT6zQbiiio | |
## Setup Instructions: | |
1. **Obtain an API Key:** | |
- Register for an account at the Materials Project: https://materialsproject.org | |
- Generate an API key from your account settings: https://materialsproject.org/api |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pymatgen import Composition, Element, MPRester | |
from pymatgen.analysis.phase_diagram import PhaseDiagram | |
if __name__ == "__main__": | |
# stuff the user needs to set | |
MAPI_KEY = None | |
FORMULA = "FeP2" | |
OPEN_ELEMENT = "O" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scopus import ScopusAuthor, ScopusAbstract | |
AUTHOR_SCOPUS_ID = """ | |
Sumanjeet Kaur, 15071548400 | |
Sean Lubner, 55895288700 | |
Fuduo Ma, 55390403200 | |
Ravi Prasher, 7004221271 | |
Peiyuan Yu, 56412335300 | |
Vivek Subramanian, 56504639000 | |
David Suich, 55804751900 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pymatgen import MPRester, Spin, Element | |
def print_dos_data(dos): | |
print("The Fermi energy is {}".format(dos.efermi)) | |
cols = ["energy", "total_dos", "up_dos", "down_dos"] | |
energies = dos.energies | |
total_dos = dos.get_densities() # note that you can also get smeaered densities using a different function | |
up_dos = dos.get_densities(Spin.up) |
NewerOlder