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
| Type | What it does | Typical use | Watch out for |
|---|---|---|---|
| Periodic | Fields leaving one side re-enter on the opposite side | Homogeneous plasmas, transverse directions of wide systems, instability studies | The box length quantises allowed wavelengths |
| Silver-Müller / first-order absorber | Absorbs outgoing waves, exactly only at normal incidence | Simple open boundaries; laser injection boundaries in some codes | Partial reflection of oblique waves |
| Perfectly matched layer (PML) | A thin absorbing layer with matched impedance; absorbs at all angles | Open boundaries in laser and beam simulations | Needs several cells; misconfiguration causes instabilities |
| Perfect conductor (PEC) | Tangential E = 0; fully reflecting | Metal walls, waveguides, cavities, vacuum electronics | Reflections are physical only if a real wall exists |
| Laser / antenna injection | Launches a prescribed wave from a boundary or an internal antenna plane | Laser–plasma interaction | Injected profile must be consistent with the grid resolution |
Particle boundaries
| Type | What it does | Typical use |
|---|---|---|
| Periodic | Particles leaving re-enter on the other side | Homogeneous and transverse-periodic problems |
| Absorbing / outflow | Particles are removed (their charge leaves the domain) | Open boundaries, targets in vacuum, electrodes |
| Reflecting | Particles bounce back specularly | Symmetry planes, idealised walls |
| Thermal / re-emitting | Absorbed particles are replaced by new ones from a thermal distribution | Plasma in contact with a reservoir, bounded thermal plasmas |
| Wall with emission | Absorption plus secondary electron or ion-induced emission | Multipactor, 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
- 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.
- Energy accounting. Track total energy and the energy leaving through boundaries. Unexplained gains suggest boundary instabilities.
- 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
- Berenger, A perfectly matched layer for the absorption of electromagnetic waves, J. Comput. Phys. 114, 185 (1994) · Peer-reviewed article
- Birdsall & Langdon, Plasma Physics via Computer Simulation (CRC Press) · Standard textbook
- WarpX documentation: boundary conditions (input parameters) · WarpX documentation
- 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.