Two-Stream Instability (1D PIC)
What you are seeing: two counter-streaming beams of electrons in a 1D plasma. The configuration is unstable: any tiny perturbation in density grows exponentially, the beams form rolling vortices in phase space ("electron holes"), then trap each other, eventually settling into a single thermal distribution. This is the canonical kinetic plasma instability.
The top plot is the (x, v) phase space, sampled by 10000 macro-particles, drawn with persistence so the electron-hole vortices leave trails. The middle strip is the density-mode spectrogram ( for versus time): mode 1 dominates the linear phase, harmonics appear at saturation. The bottom trace is with the dashed analytic reference of slope (plasma units): the measured slope tracks it in the linear regime, then the mode saturates. Default puts the fundamental near the peak-growth wavenumber.
WHAT TO TRY
- Watch the two counter-streaming beams go unstable: a tiny density ripple grows exponentially and the beams roll up into phase-space vortices, the cat-eye structure of the two-stream instability.
- Raise the beam velocity v_0: the instability growth rate and the vortex size change, since the unstable wavenumbers scale with the streaming speed.
- Follow the field-energy diagnostic: it grows exponentially while the instability develops, then saturates as the beams thermalize and the vortices merge, the classic linear-then-nonlinear story.