Abstract

We provide a guide to implementing the particle-in-cell algorithm, which is useful for simulating diverse phenomena in plasmas. We focus on two-dimensional systems which have vector fields with three Cartesian components but depend only on two spatial coordinates. We describe the algorithm in detail, including particle-to-grid interpolation, the fast Fourier transform, the Boris algorithm, and the use of dimensionless units. As an example, we discuss a simulation of the two-stream instability, which occurs in a plasma system composed of two counter-streaming electrons and an ion background at rest.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call