Particles
Charged particles in a field solver (particle-in-cell) are advanced in one of two ways, and SELAH provides both:
- with the field's Runge–Kutta scheme, in the same stage loop: the particles are a companion of the field stepper, their residual the Lorentz force at each stage;
- with a two-level pusher (Boris and its relativistic successors), staggered in time with the fields: a kernel,
selah_push.
The theory, with its sources: notes/companions-pushers-pml.md in the repository.
With the field's scheme
The particles' residual is
| Property | Value |
|---|---|
| stability of the gyration | st%imag_axis_bound(): 0 for euler and ssp-22 (unstable at any step), |
| gyration energy | decays by |
| phase-space volume | not preserved |
| exact: |
Two-level pushers
! p(8, np): x at 1:3, v (or u = gamma v) at 4:6, q at 7, m at 8; e, b: the fields at x^n, (3, np)
call selah_push(PUSHER_HIGUERA_CARY, LAYOUT_V_FIRST, n, dt, 1, 4, 7, 8, p, e, b, c=c_light)The positions are at n particles to LAYOUT_V_LAST takes p(np, 8), e(np, 3), b(np, 3). The relativistic pushers hold
| Pusher | Use | Volume | ||
|---|---|---|---|---|
PUSHER_BORIS | non-relativistic | preserved | — | exact |
PUSHER_BORIS_RELATIVISTIC | relativistic, the classic | preserved | not kept (1.2e-7 per step at | wrong velocity (2 % at |
PUSHER_VAY | relativistic beams | not preserved ( | kept | exact |
PUSHER_HIGUERA_CARY | relativistic, the structure-preserving choice | preserved | kept | exact |
Boris turns the velocity by
Charge-conserving stage currents
A particle-in-cell code keeps Gauss's law exactly when its current is the one that moves the deposited charge (a charge-conserving deposit, Esirkepov 2001). With the particles in the field's Runge–Kutta step, the field at stage
call sp%lookahead(k, bp, dt, p, pt) ! the particles' state at stage k+1 (the step's result at the last stage)
! ... deposit H, the charge-conserving current of the displacement p -> pt over dt (the caller's: Esirkepov)
call st%stage_current(k, bx, h, jall, jk) ! J_k = (H - sum_{r<k} a_{k+1,r} J_r) / a_{k+1,k}
! ... jk into jall(..., k); the field's residual at stage k with the current jkThen stage_current_admissible()). The individual
Verification
| What | Case |
|---|---|
| companions, the gyration on a companion, the axis bounds, the drift | C8, A5 |
| the four pushers: defining equations, angle, speed, drift, force-free, volume, the non-relativistic limit | A8 |
| Gauss's law at every stage and step with the stage currents; the look-ahead state | C9 |