PIC numerical instability: symptoms, causes and fixes
Updated · Scientifically reviewed by Dinkar Mishra, PhD on
Short answer
Most PIC instabilities come from five sources: a time step above the CFL or ωpΔt limits (explosive growth), cells much larger than the Debye length (steady self-heating, finite-grid instability), relativistic beams interacting with numerical dispersion (numerical Cherenkov radiation), too few particles per cell (noise and collisional heating), and badly configured boundaries. Diagnose by tracking total energy and spectra, then fix the specific numerical parameter rather than adding filters blindly.
Who this is for
PIC users whose simulations heat up, blow up, or show suspicious high-frequency noise, and reviewers checking whether results are numerical artefacts.
Symptoms
- Fields grow explosively within a few hundred steps and the code stops with NaNs.
- The plasma temperature rises steadily although nothing should heat it.
- A relativistic electron beam emits radiation and its emittance grows unphysically.
- Grid-scale checkerboard or high-frequency noise appears in field maps.
- Energy or particles appear to return from the box edges.
Diagnosis
Plot the total energy (fields + kinetic) and, if available, each species’ kinetic energy versus time, then match the pattern:
| Pattern | Likely cause |
|---|---|
| Exponential blow-up, often from the start | Time step above the CFL limit, or |
| Slow, steady heating of a thermal plasma | Finite-grid instability (), or noise heating from too few particles per cell |
| Growth localised around relativistic beams, at high wavenumbers | Numerical Cherenkov instability |
| Noise level falls as particles per cell increase | Statistical noise |
| Artefacts start at the edges | Boundary configuration; see boundary conditions |
Compute the relevant scales for your densest, coldest region with the Debye length calculator and the CFL time step calculator.
Fixes
CFL or plasma-frequency violation. Reduce to at most 0.95–0.99 of the CFL limit for your dimensionality, and make sure in the densest plasma, including density spikes that form during the run.
Finite-grid instability. Reduce the cell size towards . Alternatively, use higher-order particle shapes, which reduce aliasing, or an energy-conserving or implicit algorithm if your code offers one. Adding particles alone does not cure it.
Numerical Cherenkov radiation. It arises because numerical light waves on a Yee grid travel slower than , so relativistic particles can outrun them. Mitigations, depending on the code: spectral (PSATD) or modified FDTD solvers with improved dispersion, current filtering, Galilean or boosted-frame PSATD schemes, and specific time-step choices. Follow your code’s recommended settings for relativistic beams.
Noise. Increase particles per cell, use quiet starts or higher-order shapes, or apply a modest current filter. See particles per cell.
Boundaries. Use PML or proper absorbers, keep plasma away from absorbing layers, and enlarge the box to confirm that results do not change.
When to get help
If the instability persists after these checks, or appears only in long production runs, it may involve code-specific options or a genuine code bug. An independent review of the setup and a convergence study, which is our V&V audit, usually identifies the cause quickly.
Assumptions and limitations
- Thresholds are for standard explicit, second-order PIC. Implicit, energy-conserving and spectral schemes have different stability properties.
- Mitigation options are code-specific, so check your code’s documentation for supported solvers and filters.
- Filters and modified solvers change the numerical dispersion. Always re-verify key results after changing them.
Frequently asked questions
How can I tell physics from numerics?+
Change the numerical parameters (cell size, time step, particles per cell, shape order) and keep the physics fixed. Physical results converge; numerical artefacts change with the numerical parameters. Energy that grows in a system that should conserve it is almost always numerical.
Should I just add a filter?+
Filters (binomial smoothing of currents, spectral filters) are legitimate tools, especially against numerical Cherenkov radiation and grid-scale noise, but they also damp short-wavelength physics. Use them knowingly, report them, and check that results do not depend on the filter strength.
Does single precision cause instabilities?+
Single precision can increase noise, and cause energy drift in long runs or with large dynamic ranges, but many GPU PIC codes use it successfully. Compare a short double-precision run if you suspect precision issues.
My simulation is stable in 2D but unstable in 3D. Why?+
The CFL limit is stricter in 3D (Δt ≤ Δx/(c√3) for cubic cells), and numerical dispersion properties differ. Recompute the time step for the 3D grid.
References
- Birdsall & Langdon, Plasma Physics via Computer Simulation (CRC Press) · Standard textbook
- Godfrey, Numerical Cherenkov instabilities in electromagnetic particle codes, J. Comput. Phys. 15, 504 (1974) · Peer-reviewed article
- Hockney, Measurements of collision and heating times in a two-dimensional thermal computer plasma, J. Comput. Phys. 8, 19 (1971) · Peer-reviewed article
- Lehe et al., Numerical growth of emittance in simulations of laser-wakefield acceleration, Phys. Rev. ST Accel. Beams 16, 021301 (2013) · Peer-reviewed article
Still stuck?
Send us the error output and your job script. A computational scientist will diagnose it, usually within a day.
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.