Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix the calculation of fermi velocity #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion mpinterfaces/mat2d/electronic_structure/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
__status__ = "Production"
__date__ = "March 3, 2017"

"""
Revision history:
- Date: July 26, 2019
- Details: fix the calculation of fermi velocity of each band that crosses the Fermi level
- maintainer: Yue-Wen Fang
"""


def get_band_edges():
"""
Expand Down Expand Up @@ -738,7 +745,9 @@ def get_fermi_velocities():
dk = np.sqrt((kpoints[i+1].cart_coords[0]
- kpoints[i].cart_coords[0])**2
+ (kpoints[i+1].cart_coords[1]
- kpoints[i].cart_coords[1])**2)
- kpoints[i].cart_coords[1])**2
+ (kpoints[i+1].cart_coords[2]
- kpoints[i].cart_coords[2])**2)
v_f = abs((band[i+1] - band[i]) / (h_bar * dk))
fermi_velocities.append(v_f)

Expand Down