示例#1
0
文件: aims.py 项目: PHOTOX/fuase
 def get_dipole_moment(self, atoms):
     if ('dipole' not in self.parameters.get('output', []) or
         atoms.pbc.any()):
         raise NotImplementedError
     return FileIOCalculator.get_dipole_moment(self, atoms)
示例#2
0
 def get_dipole_moment(self, atoms):
     if ('dipole' not in self.parameters.get('output', [])
             or atoms.pbc.any()):
         raise PropertyNotImplementedError
     return FileIOCalculator.get_dipole_moment(self, atoms)
示例#3
0
文件: onetep.py 项目: arosen93/rASE
 def get_dipole_moment(self, atoms=None):
     self.parameters['polarisation_calculate'] = True
     self.parameters['do_properties'] = True
     return FileIOCalculator.get_dipole_moment(self, atoms)