Skip to content
VLASIFY™
GuidePlasma & PIC simulation

PIC simulation boundary conditions: fields and particles

Updated · Scientifically reviewed by Dinkar Mishra, PhD on

Short answer

PIC codes set boundaries separately for fields and particles. Fields can be periodic, absorbing (Silver-Müller first-order absorbers or perfectly matched layers, PML, which absorb better at oblique incidence), or reflecting (perfect conductors), and lasers are usually injected through a boundary or an antenna. Particles can be periodic, absorbed (outflow), reflected, or re-emitted thermally at walls. Choose boundaries that mimic the physical system and check that waves and particles leaving the box do not come back as artefacts.

Who this is for

PIC users configuring simulation boxes who need to understand what each boundary option does and which artefacts to look for.

How it works

Every edge of the simulation box needs two rules: one for the electromagnetic fields on the grid, one for the macro-particles. They should describe the same physical situation, for example an open boundary where both waves and particles leave freely.

Field boundaries

TypeWhat it doesTypical useWatch out for
PeriodicFields leaving one side re-enter on the opposite sideHomogeneous plasmas, transverse directions of wide systems, instability studiesThe box length quantises allowed wavelengths
Silver-Müller / first-order absorberAbsorbs outgoing waves, exactly only at normal incidenceSimple open boundaries; laser injection boundaries in some codesPartial reflection of oblique waves
Perfectly matched layer (PML)A thin absorbing layer with matched impedance; absorbs at all anglesOpen boundaries in laser and beam simulationsNeeds several cells; misconfiguration causes instabilities
Perfect conductor (PEC)Tangential E = 0; fully reflectingMetal walls, waveguides, cavities, vacuum electronicsReflections are physical only if a real wall exists
Laser / antenna injectionLaunches a prescribed wave from a boundary or an internal antenna planeLaser–plasma interactionInjected profile must be consistent with the grid resolution

Particle boundaries

TypeWhat it doesTypical use
PeriodicParticles leaving re-enter on the other sideHomogeneous and transverse-periodic problems
Absorbing / outflowParticles are removed (their charge leaves the domain)Open boundaries, targets in vacuum, electrodes
ReflectingParticles bounce back specularlySymmetry planes, idealised walls
Thermal / re-emittingAbsorbed particles are replaced by new ones from a thermal distributionPlasma in contact with a reservoir, bounded thermal plasmas
Wall with emissionAbsorption plus secondary electron or ion-induced emissionMultipactor, discharges, thrusters

Choosing for your problem

  • Laser hitting a target in vacuum: inject the laser from one boundary; make the other boundaries open (PML or absorbing for fields, outflow for particles), with enough vacuum that the expanding plasma does not reach them during the run.
  • Laser wakefield with a moving window: open longitudinal boundaries handled by the window; transverse PML or a wide box.
  • Homogeneous plasma instability: periodic in all directions, with the box a multiple of the wavelengths of interest.
  • Discharge or sheath: conducting electrodes with prescribed potentials, absorbing particle walls, and emission models if relevant.

Testing your boundaries

  1. Vacuum test. Send the laser or a pulse through the empty box and measure the energy reflected back from the far boundary. It should be negligible for your purpose.
  2. Energy accounting. Track total energy and the energy leaving through boundaries. Unexplained gains suggest boundary instabilities.
  3. Box-size test. Enlarge the box (or add vacuum) and check that your key results do not change.

Assumptions and limitations

  • Names and options differ between codes (EPOCH, Smilei, WarpX, PIConGPU, FBPIC), so consult your code’s input documentation.
  • PML implementations vary in stability with plasma inside the layer. Keep plasma away from PML regions unless the code supports it.
  • Boundary artefacts can resemble physical effects such as returning electrons or reflected light, which is why the box-size test is valuable. See PIC numerical instability for related artefacts.

Frequently asked questions

Why do I see reflections from an "absorbing" boundary?+

Simple absorbers (such as first-order Silver-Müller conditions) absorb perfectly only at normal incidence and reflect part of obliquely incident or evanescent waves. PML layers absorb much better but need several cells of thickness and correct configuration. Also check that particles leaving the box are absorbed consistently.

How thick should a PML be?+

Typically about 8–16 cells, depending on the code and the required reflection level. Thicker layers absorb better at the cost of extra cells. Check your code's recommendations.

What boundary should I use for a plasma slab in contact with a wall?+

For bounded low-temperature plasmas (sheaths, discharges), electrodes are conductors with fixed or circuit-driven potentials, and particles hitting them are absorbed, optionally with secondary-electron emission. Periodic boundaries would remove the sheath physics entirely.

Do moving windows need special boundaries?+

Yes. With a moving window, fresh plasma is injected at the leading edge and fields and particles exit at the trailing edge. Codes handle this automatically, but the injected plasma profile and the trailing boundary still affect long runs.

References

  1. Berenger, A perfectly matched layer for the absorption of electromagnetic waves, J. Comput. Phys. 114, 185 (1994) · Peer-reviewed article
  2. Birdsall & Langdon, Plasma Physics via Computer Simulation (CRC Press) · Standard textbook
  3. WarpX documentation: boundary conditions (input parameters) · WarpX documentation
  4. 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.

Related guides

How Vlasify can help

Get a Quote