Skip to content

A8 Particle pushers ​

IDGroupTypeBackendsFigureProgram
A8AccuracyPCPU (gfortran, nvfortran, ifx; R8P and R4P, the volume values in R8P); GPUnoselah_test_pushers

Case and scope ​

selah_push advances particles by one staggered leapfrog step with one of four pushers (guide). The case checks each against its defining implicit equation and against the properties the literature gives it (Boris 1970; Vay 2008; Higuera & Cary 2017; Qin et al. 2013), with the reference values computed at 40 digits by the research of notes/companions-pushers-pml.md.

Setup ​

ItemValue
Unitsq/m=1, c=1 (relativistic), one particle per call through device arrays
Borispure B=ωz^, ωΔt = 0.1, 1, 3: the turning angle of one step; |v| over 1000 steps in a generic B; 16 steps from vE (E=0.5y^, B=2z^); both layouts, 7 steps in generic fields
Defining equationsE=(0.3,−0.2,0.15), B=(0.1,0.4,1.3), u=(0.7,1.9,−0.4), Δt=0.8
Force-freeγ0=10 along x^, B=z^, E=−v×B, qBΔt/m=0.1, one step
Relativistic driftE=0.5y^, B=z^, qBΔt/m=1, one step from uE=γEvE
Volumethe momentum map's Jacobian by centred differences (h=10−5), the fields and u of the defining equations, qΔt/m=1
Non-relativistic limitc=106: each relativistic pusher against Boris

Program ​

bash
./exe/selah_test_pushers

Results ​

CheckResultBound
Boris's angle at ωΔt = 0.1, 1, 32arctan⁡(ωΔt/2): 0.0999168, 0.9272952, 1.96558748 ε
Boris's speed, 1000 steps; vE, 16 steps; layoutskept; kept; bitwise103 ε; 8 ε; exact
defining equations, relative residual2.2e-16, 5.4e-17, 2.2e-16, 2.2e-16 (Boris, rel. Boris, Vay, HC)64 ε
force-free, |u1−u0|/|u0|rel. Boris 1.24e-7 (reference 1.237e-7); Vay 0; HC 05 % / 64 ε
relativistic drift from uErel. Boris 1.8e-2; Vay 1.9e-16; HC 2.2e-16moved / 64 ε
det−1Boris 1.5e-11, rel. Boris 6.6e-12, HC 3.9e-12 (the differences' floor); Vay −1.220e-4 (reference −1.22e-4)10−8; ±2⋅10−6
c=106every relativistic pusher = Boris10−10

Findings ​

  • The Fortran kernels reproduce the research's 40-digit reference values (the force-free error of relativistic Boris, the volume defect of Vay) to the digits printed: two independent implementations agree.
  • Higuera–Cary is the only one of the four with all three properties (volume, force-free, drift) in the relativistic regime.

GPL-3.0-or-later, BSD-2-Clause, BSD-3-Clause or MIT, at your choice