Remove CM momentum

class ZeroMomentum(all_info)

The constructor of an object of removing the momentum of center mass of all particles.

Parameters:

all_info (AllInfo) – The system information.

class ZeroMomentum(all_info, group)

specifies the method of removing the momentum of center mass of a group of particles.

Parameters:
  • all_info (AllInfo) – The system information.

  • group (ParticleSet) – The group of charged particles.

Example:

zm = gala.ZeroMomentum(all_info)
zm.setPeriod(10)
app.add(zm)