Initial Polarization Process

This commit is contained in:
2023-02-23 04:07:40 -03:00
parent 0f7484756b
commit b9b6c373b1
6 changed files with 73 additions and 23 deletions

View File

@@ -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.