Example #1
0
File: lj.py Project: dimaslave/pele
 def getEnergyGradient(self, coords):
     E, grad = ljf.ljenergy_gradient(
             coords, self.eps, self.sig, self.periodic, self.boxl)
     return E, grad 
Example #2
0
File: lj.py Project: wwwtyro/PyGMIN
 def getEnergyGradient(self, coords):
     natoms = len(coords) / 3
     E, grad = ljf.ljenergy_gradient(
             coords, self.eps, self.sig, self.periodic, self.boxl, [natoms])
     return E, grad 
Example #3
0
 def getEnergyGradient(self, coords):
     E, grad = ljf.ljenergy_gradient(coords, self.eps, self.sig,
                                     self.periodic, self.boxl)
     return E, grad