示例#1
0
文件: lj.py 项目: wwwtyro/PyGMIN
 def getEnergyGradientList(self, coords, ilist):
     #ilist = ilist_i.getNPilist()
     #ilist += 1 #fortran indexing
     nlist = len(ilist)
     natoms = len(coords) / 3
     E, grad = ljf.energy_gradient_ilist(
             coords, self.eps, self.sig, ilist.reshape(-1), self.periodic, 
             self.boxl, [natoms, nlist])
     #ilist -= 1
     return E, grad 
示例#2
0
文件: lj.py 项目: yangxi1209/pele
 def getEnergyGradientList(self, coords, ilist):
     E, grad = ljf.energy_gradient_ilist(coords, self.eps, self.sig,
                                         ilist.reshape(-1), self.periodic,
                                         self.boxl)
     return E, grad
示例#3
0
文件: lj.py 项目: dimaslave/pele
 def getEnergyGradientList(self, coords, ilist):
     E, grad = ljf.energy_gradient_ilist(
             coords, self.eps, self.sig, ilist.reshape(-1), self.periodic, 
             self.boxl)
     return E, grad 
示例#4
0
文件: lj.py 项目: js850/pele
 def getEnergyGradientList(self, coords, ilist):
     # ilist = ilist_i.getNPilist()
     # ilist += 1 #fortran indexing
     E, grad = ljf.energy_gradient_ilist(coords, self.eps, self.sig, ilist.reshape(-1), self.periodic, self.boxl)
     # ilist -= 1
     return E, grad