Initial Polarization Process
This commit is contained in:
@@ -28,12 +28,7 @@ class Molecule:
|
||||
__slots__ = (
|
||||
'mol_name',
|
||||
'atoms',
|
||||
'position',
|
||||
'energy',
|
||||
'gradient',
|
||||
'hessian',
|
||||
'total_mass',
|
||||
'com'
|
||||
'position'
|
||||
)
|
||||
|
||||
def __init__(self, mol_name: str) -> None:
|
||||
@@ -51,6 +46,9 @@ class Molecule:
|
||||
for atom in self.atoms:
|
||||
yield atom
|
||||
|
||||
def __len__(self):
|
||||
return len(self.atoms)
|
||||
|
||||
def add_atom(self, a: Atom) -> None:
|
||||
"""
|
||||
Adds Atom instance to the molecule.
|
||||
|
||||
Reference in New Issue
Block a user