Phonon Bands with LO-TOΒΆ

This example shows how to plot the phonon band structure of AlAs including the LO-TO splitting. See tutorial/lesson_rf2.html



/Users/gmatteo/git_repos/pymatgen/pymatgen/util/ UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

from abipy.abilab import abiopen
import as abidata

# Open PHBST file produced by anaddb and extract the phonon bands object.
# (alternatively one can use the shell and ` -nb`
# to open the file in a jupyter notebook.
with abiopen(abidata.ref_file("")) as ncfile:
    phbands = ncfile.phbands

# Phonon frequencies with non analytical contributions, if calculated, are saved
# in the file produced by anaddb. The results should be fetched from there
# and added to the phonon bands.

# Notice that all the directions starting from or arriving at gamma that are used
# in the path should explicitely calculated, even if the values are the same.

# Plot the phonon frequencies. Note that the labels for the q-points
# are found automatically by searching in an internal database.
phbands.plot(title="ZnSe with LO-TO splitting")

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

Gallery generated by Sphinx-Gallery