Relaxation of Molecular Charges - v0.0.1
This commit is contained in:
@@ -234,6 +234,11 @@ class Molecule:
|
||||
|
||||
return position
|
||||
|
||||
def updateCharges(self, charges: List[float]) -> None:
|
||||
|
||||
for i, atom in enumerate(self.atom):
|
||||
atom.chg = charges[i]
|
||||
|
||||
def update_hessian(
|
||||
self,
|
||||
step: np.ndarray,
|
||||
@@ -418,4 +423,4 @@ class Molecule:
|
||||
dz = atom1.rz - atom2.rz
|
||||
distances.append(math.sqrt(dx**2 + dy**2 + dz**2))
|
||||
|
||||
return min(distances)
|
||||
return min(distances)
|
||||
Reference in New Issue
Block a user