advanced32 min studyLesson 927 in Physics

Particle-in-cell plasma discretization

Connect particle deposition, grid fields and interpolation without confusing global charge balance with local discrete continuity.

On this page

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.

ξ=xp−xjh∈[0,1],wj=1−ξ,wj+1=ξ,Qj=qpwj,Qj+1=qpwj+1,Ep=wjEj+wj+1Ej+1\xi=\frac{x_p-x_j}{h}\in[0,1],\quad w_j=1-\xi,\quad w_{j+1}=\xi,\quad Q_j=q_pw_j,\quad Q_{j+1}=q_pw_{j+1},\quad E_p=w_jE_j+w_{j+1}E_{j+1}
h is node spacing, qp a represented charge and Qj nodal charge. Ep has the same electric-field units as Ej. This local linear rule assumes the particle lies between nodes j and j + 1.↔ Scroll wide equations horizontally.

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.

ρn+1−ρnΔt+Dh ⁣⋅Jn+1/2=0,Dh ⁣⋅En=ρn/ϵ0\frac{\rho^{n+1}-\rho^n}{\Delta t}+D_h\!\cdot J^{n+1/2}=0,\qquad D_h\!\cdot E^n=\rho^n/\epsilon_0
ρ and J are grid charge and current densities, with compatible discrete placement and divergence Dh. These SI expressions require a field update consistent with the same operators to propagate the Gauss constraint.↔ Scroll wide equations horizontally.

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.

Qtotal=∑pqp=∑jQj,Var⁡(K/n)=p(1−p)nfor independent Bernoulli sampling onlyQ_{\rm total}=\sum_p q_p=\sum_j Q_j,\qquad \operatorname{Var}(K/n)=\frac{p(1-p)}{n}\quad\text{for independent Bernoulli sampling only}
The first equality follows from partition-of-unity deposition with proper boundary accounting. The second is a reference sampling law, not a universal PIC noise formula; interacting plasma particles and quiet starts need their own analysis.↔ Scroll wide equations horizontally.

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.

  1. 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.

  2. 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.

  3. 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 result

The charges are (1.5, 0.5) C, the gathered field is 2 V/m and the electric force is 4 N.

Explore the model

Interactive lab

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.

Counts and normalized fluctuations differThese are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Current readings: Mean · np: 5; Variance · np(1−p): 2.5; Total probability: 1. All parameters are adjustable with the labeled controls below.03581000.070.150.220.3Successes kP(X = k)k = 0 · P = 9.77e-4
Exact probabilityHighlighted outcomeMean np
Mean · np
5
Variance · np(1−p)
2.5
Total probability
1
t = 0 s

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.

Check your understanding

What extra property is needed beyond preservation of total deposited charge to propagate Gauss’s law in a compatible electromagnetic PIC update?

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.

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.