Toy model
ToyDrift
Electrostatic drift toy model for a single ion species in a given background magnetic field.
Overview
electrostatic drift part of the dynamics. It is intended for algorithm prototyping and reduced verification problems rather than production drift-kinetic studies.
Use cases
- reduced electrostatic guiding-center benchmarks
- testing the field solve plus pusher
- algorithm prototyping before moving to the full drift-kinetic model
Governing equations
PDEs solved by model:
Drift equation:
Poisson equation:
where is the guiding center distribution and
The control variate method can be activated in the Poisson equation; if enabled, the following Poisson equation is solved:
Normalization
Discretization
Diagnostics
The following scalars are tracked during simulation:
- Electrostatic field energy:
en_phi - Particle kinetic energy:
en_particles - Total energy:
en_tot
Examples

Diocotron instability
A sheared E×B ring of charge is unstable: a tiny azimuthal perturbation grows, rippling the ring's edges — the onset of a rotating pattern of vortices. The charge ring starts from inside conducting cylinders at and ; the indicator is one inside the ring and zero outside.

Vortex merger
Two blobs of charge of the same sign circle each other under E×B drift and merge into one, the guiding-centre analogue of the merger of two like-signed vortices. The initial density is with blob centres , separated by two length units.