Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mushroomfire committed Nov 1, 2022
1 parent 63cc065 commit cc9ef57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ def cal_atomic_temperature(self, amass, rc=5.0, units="metal", max_neigh=80):
AtomicTemp.compute()
self.data["atomic_temp"] = AtomicTemp.T

def cal_centro_symmetry_parameter(self, N=12, rc=5.0):
def cal_centro_symmetry_parameter(self, N=12, rc=5.0, max_neigh=80):
"""
N : int, 大于0的偶数,对于FCC结构是12,对于BCC是8. default : 12
"""
if not self.if_neigh:
self.build_neighbor(rc=rc, max_neigh=80)
self.build_neighbor(rc=rc, max_neigh=max_neigh)
elif self.rc < rc:
self.build_neighbor(rc=rc, max_neigh=80)
self.build_neighbor(rc=rc, max_neigh=max_neigh)

CentroSymmetryPara = CentroSymmetryParameter(
self.pos,
Expand Down

0 comments on commit cc9ef57

Please sign in to comment.