evolve#

ParticleBunch.evolve(fields, t, dt, pusher='rk4')[source]#

Evolve particle bunch to the next time step.

Parameters:
fieldslist

List of fields in which to evolve the particle bunch.

tfloat

The current time.

dtfloat

Time step by which to evolve the bunch.

pusherstr, optional

The particle pusher to use. Either ‘rk4’ or ‘boris’. By default ‘rk4’.