What is PIC simulation? The particle-in-cell method explained
Updated · Scientifically reviewed by Dinkar Mishra, PhD on
Short answer
Particle-in-cell (PIC) is a kinetic simulation method for plasmas and charged-particle beams. The plasma is represented by many "macro-particles", each standing for a large number of real particles, moving through electric and magnetic fields stored on a grid. Every time step, particle charges and currents are deposited on the grid, the field equations are solved there, fields are interpolated back to the particles, and the particles are pushed. PIC captures kinetic effects that fluid models miss, at a high computational cost.
Who this is for
Students, engineers and scientists meeting particle-in-cell simulation for the first time, and managers deciding whether a project needs kinetic modelling.
How it works
A PIC simulation has two kinds of objects: particles, which move freely in continuous space, and a grid, which stores the electromagnetic fields. Each time step repeats four operations:
- Deposit. Each macro-particle’s charge (and, for electromagnetic codes, current) is spread onto nearby grid nodes using a shape function. The simplest useful one, “cloud-in-cell”, shares charge linearly between the two nearest nodes in each dimension.
- Solve fields. The field equations are solved on the grid. Electrostatic codes solve Poisson’s equation . Electromagnetic codes advance Maxwell’s equations, usually with the finite-difference time-domain (Yee) scheme or a spectral (PSATD) solver.
- Gather. Fields are interpolated from the grid back to each particle position, with the same shape function so that the method conserves momentum.
- Push. Each particle’s velocity and position are advanced with the Lorentz force,
usually with the Boris or Vay algorithm for relativistic particles.
Because the grid smooths the fields over a cell, PIC models a “collisionless” plasma well. Binary collisions, ionisation and quantum effects are added through Monte Carlo modules where needed (PIC-MCC).
Why use PIC
PIC resolves the full velocity distribution of each species. That makes it the method of choice when:
- the distribution is far from Maxwellian, for example beams, energetic tails or accelerated particles;
- waves and particles exchange energy resonantly (Landau damping, instabilities);
- charge separation and sheaths matter (wall interaction, thrusters, plasma processing);
- intense lasers drive relativistic electron motion.
Numerical constraints
PIC is explicit and has hard stability and accuracy limits:
- Cell size. In explicit electrostatic PIC, avoids numerical heating. In laser problems the cell must resolve the laser wavelength and the plasma skin depth . See choosing PIC grid size.
- Time step. Electromagnetic codes obey the Courant (CFL) condition, in dimensions for the Yee scheme. All codes need to resolve plasma oscillations. Try the CFL calculator.
- Particles per cell. Statistical noise falls as . See particles per cell.
These limits make PIC expensive: a 3D laser–plasma run can need billions of particles and millions of core-hours. Our free PIC Simulation Planner estimates cell size, time step, memory and cost before you start.
Strengths and weaknesses
| Strengths | Weaknesses |
|---|---|
| Captures kinetic physics from first principles | Statistical noise from finite particle numbers |
| Conceptually simple, robust, well established | Must resolve the smallest scales (λD, c/ωp), so it is expensive |
| Scales well on GPUs and supercomputers | Long time scales (ion transport, equilibrium) are often out of reach |
| Many mature open-source codes | Results depend on numerical choices, so verification is essential |
Common codes
Widely used open-source codes include WarpX, EPOCH, Smilei, PIConGPU, FBPIC, OSIRIS (licence required) and VPIC. They differ in geometry, solvers, GPU support and physics modules. See our plasma simulation software comparison and our article on choosing a PIC code.
Assumptions and limitations
- This is a conceptual introduction. Production codes add many refinements (higher-order shapes, filtering, moving windows, mesh refinement, boosted frames) that change the constraints above.
- The constraints quoted are rules of thumb for standard explicit schemes. Implicit and energy-conserving PIC algorithms relax some of them.
- Choosing between PIC, Vlasov and fluid models depends on the physics question. When in doubt, a short pilot study is cheaper than a wrong model.
Frequently asked questions
What is the difference between PIC and fluid (MHD) simulation?+
Fluid and MHD models evolve averaged quantities (density, velocity, temperature) and assume the velocity distribution is close to a known form. PIC follows the particle distribution itself, so it captures non-equilibrium effects such as beams, wave–particle resonance, Landau damping and particle acceleration. Fluid models are far cheaper and are the right choice when those effects do not matter.
Why are they called macro-particles?+
Real plasmas contain ~10^20 particles per cubic metre or more, which no computer can track individually. Each simulation particle represents many real particles with the same charge-to-mass ratio, so it moves exactly like one real particle but carries the charge of many.
What is PIC used for?+
Laser–plasma interaction and laser wakefield acceleration, fusion edge and RF physics, plasma processing for semiconductors, electric propulsion, vacuum electronics and high-power microwave devices, space and astrophysical plasmas such as magnetic reconnection and collisionless shocks, and beam physics in accelerators.
Is PIC the same as Vlasov simulation?+
Both solve kinetic physics. PIC samples the distribution with particles (a Monte Carlo-like approach with statistical noise); continuum Vlasov codes discretise the distribution function on a phase-space grid, which removes noise but costs more memory in high dimensions.
References
- Birdsall & Langdon, Plasma Physics via Computer Simulation (CRC Press) · Standard textbook
- Hockney & Eastwood, Computer Simulation Using Particles (CRC Press) · Standard textbook
- Dawson, Particle simulation of plasmas, Rev. Mod. Phys. 55, 403 (1983) · Review article
- Arber et al., Contemporary particle-in-cell approach to laser-plasma modelling, PPCF 57, 113001 (2015) · Peer-reviewed article
Need help applying this?
Our physicists turn concepts into working, verified simulations for research groups and companies.
Services listed on this page are available today. Products marked “early access” or “in development” on our platform page are not yet generally available.
Spotted an error or an outdated command? Tell us. We correct verified issues promptly.