Ejemplo n.º 1
0
 def getEnergyGradientList(self, coords, ilist):
     #ilist = ilist_i.getNPilist()
     #ilist += 1 #fortran indexing
     E, grad = _ljcut.energy_gradient_ilist(
             coords, self.eps, self.sig, ilist.reshape(-1), self.periodic, 
             self.boxl, self.rcut)
     #ilist -= 1
     return E, grad 
Ejemplo n.º 2
0
 def getEnergyGradientList(self, coords, ilist):
     #ilist = ilist_i.getNPilist()
     #ilist += 1 #fortran indexing
     nlist = len(ilist)
     natoms = len(coords) / 3
     E, grad = _ljcut.energy_gradient_ilist(coords, self.eps, self.sig,
                                            ilist.reshape(-1),
                                            self.periodic, self.boxl,
                                            self.rcut, [natoms, nlist])
     #ilist -= 1
     return E, grad
Ejemplo n.º 3
0
 def getEnergyGradientList(self, coords, ilist):
     E, grad = _ljcut.energy_gradient_ilist(
             coords, self.eps, self.sig, ilist.reshape(-1), self.periodic, 
             self.boxl, self.rcut)
     return E, grad 
Ejemplo n.º 4
0
 def getEnergyGradientList(self, coords, ilist):
     E, grad = _ljcut.energy_gradient_ilist(coords, self.eps, self.sig,
                                            ilist.reshape(-1),
                                            self.periodic, self.boxl,
                                            self.rcut)
     return E, grad