Skip to content

Commit

Permalink
Ensure that k-point at Gamma is identically zero to ensure correct ph…
Browse files Browse the repository at this point in the history
…onon eigenmodes.
  • Loading branch information
Taylor-96 committed Jul 11, 2024
1 parent 1aede50 commit ce816c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions notebook/lattice-vibration/NGLTrajectoryClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def __init__(self, trajectory):
self.ka = 0
target_k=np.pi/2
self.ka_array = np.linspace(-2 * np.pi, 2 * np.pi, 101)
# Ensure that k-point at Gamma is identically zero to ensure correct phonon eigenmodes
self.ka_array[np.abs(self.ka_array) < 1e-5] = 0

self.idx = int(101*(target_k+2*np.pi)/(4*np.pi)) # idx corresponding to ka=0
#self.idx = 50 # idx corresponding to ka=0
self.optic = False
Expand Down

0 comments on commit ce816c8

Please sign in to comment.