Particle-in-cell plasma discretization
Connect particle deposition, grid fields and interpolation without confusing global charge balance with local discrete continuity.
On this page
The question for today
What you’ll understand
- Deposit and gather with a linear shape on a tiny mesh.
- Explain the stronger requirement of a discrete continuity equation.
- Separate particle sampling, spatial resolution and time-step restrictions.
Particle-in-cell methods represent a phase-space distribution by weighted numerical particles coupled to fields on a mesh. A numerical particle commonly stands for many physical charges; its weight is part of the model. The algorithm deposits particle information on the grid, solves or advances grid fields, interpolates those fields back and updates particle motion. A faithful calculation needs these operations to work together. Merely preserving the sum of deposited charge does not guarantee local charge conservation, accurate screening or a stable self-consistent plasma evolution.
Deposit a finite shape rather than a singular point
In one dimension a simple linear shape distributes a particle's charge between neighboring nodes. The weights decrease with distance and sum to one within each cell. Multiplying those weights by the represented charge produces nodal charges that add to the original charge. Converting them to a charge density additionally requires the declared nodal control volumes and, in a reduced-dimensional model, the cross-sectional convention. A list of charges in coulombs should never be silently relabeled as a three-dimensional density.
The field seen by a particle is gathered from grid values using an interpolation rule. Matching deposition and gathering consistently can improve symmetry and reduce spurious self-interaction, but energy conservation also depends on the field solver and temporal coupling. Higher-order shapes distribute information over more nodes and filter short spatial scales. They can reduce some noise or aliasing while broadening the represented charge, so a smoother picture is not proof of greater physical resolution at every wavelength.
Enforce the local continuity relation
A moving particle changes the charge assigned to neighboring nodes. To preserve a discrete Gauss constraint under an electromagnetic field update, the current deposition must match that charge change through the solver's discrete divergence. One can conserve the total charge while putting current through the wrong interfaces. A local continuity identity is therefore stronger than checking one global sum. Charge-conserving deposition schemes construct the current from the particle's path and the chosen shape and grid operators.
The electrostatic variant solves a Poisson problem rather than advancing all electromagnetic wave degrees of freedom. Periodic electrostatics requires a compatible net charge: summing the discrete Laplacian gives zero, so a nonneutral source cannot be accommodated merely by choosing a potential gauge. A uniform neutralizing background may be a justified physical approximation in a particular model, but adding it changes the source. Particle loss at an absorbing boundary must likewise be accompanied by the intended boundary charge or current accounting.
Study several independent resolution limits
Increasing particle number can reduce sampling fluctuations for a specified loading procedure without reducing spatial truncation error. Refining the grid can resolve shorter wavelengths while increasing noise per cell if the particle count is left fixed. Time stepping must resolve the particle motion and the relevant plasma frequencies; an explicit electromagnetic field solver also has its own Courant condition. Conditions involving Debye length or plasma period depend on the algorithm and regime, rather than forming a universal guarantee for every PIC scheme.
Useful studies vary particle count, shape, mesh spacing and time step separately, keeping the represented total charge and physical parameters controlled. Ensembles or loading comparisons address statistical variability; mesh convergence addresses a deterministic approximation. The probability lab shows exact binomial count moments for independent trials. Converting those count moments to normalized fluctuations illustrates a sampling distinction, but the instrument has no particle shapes, self-consistent forces, charge deposition or plasma stability calculation.
Work it through
Deposit charge and gather a field
Nodes at 0 m and 1 m carry electric fields E0 = 1 V/m and E1 = 5 V/m. A represented particle of charge 2 C lies at x = 0.25 m. Use linear deposition and gathering to find nodal charges, the gathered field and the electric force.
The fractional coordinate is ξ = 0.25, so the weights are 0.75 and 0.25. They sum to one, which is the local charge-normalization check.
The nodal charges are 1.5 C and 0.5 C, adding to the original 2 C. They are charges rather than densities because no nodal volumes were supplied.
The gathered field is 0.75(1) + 0.25(5) = 2 V/m. Multiplying by the represented charge gives 4 N in the positive direction, using one volt per meter equal to one newton per coulomb.
The charges are (1.5, 0.5) C, the gathered field is 2 V/m and the electric force is 4 N.
The living notebook
Explore the model
Interactive lab · probability
Counts and normalized fluctuations differ
Reset and set BOTH Success probability p = 0.50 and Trials n = 4; predict count mean 2 and variance 1. Reset and set p = 0.50 and n = 16; predict count mean 8 and variance 4. Dividing the displayed variances by n² gives proportion variances 1/16 and 1/64. These exact independent-trial moments illustrate sampling only, not PIC deposition, plasma noise or a self-consistent field solve.
- Mean · np
- 5
- Variance · np(1−p)
- 2.5
- Total probability
- 1
These are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forRaw count fluctuations can grow while fluctuations of a normalized estimator shrink.
Pause & reason
Check your understanding
Your turn
Try it yourself
Use four periodic nodes with spacing 1 m. The same 2 C particle at x = 0.25 m deposits (1.5,0.5,0,0) C. Add a declared uniform background totaling −2 C. Find each background nodal charge, the net nodal charges and the total. Is the background only a gauge choice?
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Uniformity assigns one quarter of the background charge to each of the four equal periodic nodal volumes.
Compare with the solution
Each background nodal charge is −0.5 C. The net nodal charges become (1,0,−0.5,−0.5) C and sum to zero. For equal nodal volumes this supplies the zero-mean source compatibility needed by periodic Poisson electrostatics. The background changes the physical source; it is not equivalent to adding a constant to the potential. A separate gauge condition can fix the arbitrary constant of the resulting potential. This exercise establishes source compatibility and deposition normalization, not the full local current-continuity property during subsequent particle motion.
Keep the idea
Take it with you
- Deposition weights preserve total charge when they form a partition of unity.
- Discrete local continuity is stronger than a global charge sum.
- Particle, grid and temporal resolution errors need separate controls.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.