pele.takestep.ParticleExchange

class pele.takestep.ParticleExchange(Alist, Blist, verbose=False)[source]

Implement a takestep move which swaps two un-like atoms

Choose a random atom from group A and a random atom from group B and exchange their xyz coordinates.

Parameters :

Alist, Blist : list of integers

the indices of the atoms in each of the groups

verbose : bool

print debugging info

Methods

__call__(*args, **kwargs)
scale(factor)
takeStep(coords, **kwargs)
updateStep(accepted, **kwargs) feedback from basin hopping if last step was accepted

Previous topic

pele.takestep.RotationalDisplacement.updateStep

Next topic

pele.takestep.ParticleExchange.__call__