Skip to content
Projects

Validation

Besides unit tests of every kind’s kinematics (exact energy loss, energy sharing, isotropy, products), the test suite checks the operator in a 0D reactor against closed-form solutions. With Maxwell-molecule cross sections the frequency ν=nK\nu = nK is constant. The method then collides a marker within one step with probability p=(1−e−sνΔt)/sp = (1 - e^{-s\nu\Delta t})/s, where ss is the bound safety factor, and the expectations are exact functions of the step count:

TestExpectationTolerance
collided fraction in one step(1−e−νmax⁡Δt) ν/νmax⁡(1 - e^{-\nu_{\max}\Delta t})\,\nu/\nu_{\max}5σ
attachment, electron survival(1−p)n(1 - p)^n2 %
ionization, electron growth(1+p)n(1 + p)^n, and ne−nin_e - n_i constant2 %
equal-mass elastic, mean energy32kTg+(E0−32kTg) e−νefft/2\tfrac32kT_g + (E_0 - \tfrac32kT_g)\,e^{-\nu_{\rm eff}t/2}2 %
resonant charge exchange of a drifting beamTg+(T0−Tg)f+Mu023kf(1−f)T_g + (T_0-T_g)f + \frac{Mu_0^2}{3k}f(1-f), f=(1−p)nf = (1-p)^n2 %
thermal ions on a gas at the same temperaturemean energy unchanged (detailed balance)1 %
cold ions in a 300 K gasrelax to 300 K and stay there2–3 %
density profilecollision probability proportional to the local density, zero where it is zero5–8 %
ions in a flowing, heated gasrelax to the gas’s flow velocity and local temperature5 %
ions in a uniform field EEdrift vd=qE/(μν)v_d = qE/(\mu\nu) and Wannier’s mean energy 32kTg+12(m+M)vd2\tfrac32kT_g + \tfrac12(m+M)v_d^23 %
marker mergingweight, momentum and kinetic energy unchangedexact
ion-impact ionizationenergy and momentum conserved up to the electron’s O(me/M)O(\sqrt{m_e/M}) termsexact
Opal–Peterson–Beaty sharingmean secondary energy wln⁡(1+(R/2w)2)/(2arctan⁡(R/2w))w\ln(1+(R/2w)^2)/(2\arctan(R/2w))2 %

The drift velocity and the Wannier energy hold exactly for a Maxwell-molecule cross section with isotropic scattering, which makes the field test a check of the field push and the collision kinematics together: a swarm benchmark with a closed-form answer. For real gases, compare the same reactor diagnostics (mean_velocity, mean_energy_ev and the collision counts) with solve_eedf for the same processes.

solve_eedf is checked against closed forms, against published two-term results for model gases, against LoKI-B and, where it is installed, against BOLOS, two independent implementations of the method:

TestExpectationAgreement
constant collision frequencyMaxwellian at kT+M(E/N)2γ2/(6meK2)kT + M(E/N)^2\gamma^2/(6m_eK^2), μN=e/(meK)\mu N = e/(m_eK)0.2 %
no fieldMaxwellian at the gas temperature0.1 %
constant cross section, cold gasDruyvesteyn distribution and its mean energy10−810^{-8}
Reid ramp, 1–40 Tdmean energy, drift velocity and DNDN of Reid (1979) and Flynn et al. (2024)0.1 %
Lucas–Saelee ionization gas, 30 Tdthe same and kizk_{iz}, Flynn et al. (2024), two-term0.2 %
synthetic gas with every process, 30–300 Tdmean energy, μN\mu N, DNDN and the rates of BOLOS0.2 %
argon-like gas, 100–1000 Td, 12 casesLoKI-B: temporal and spatial growth, equal and Opal–Peterson–Beaty sharing0.01–0.1 %
H2-like gas with levels, 1–100 TdLoKI-B: rotational and vibrational levels, superelastic collisions0.01–0.03 %
levels at the gas temperature, no fieldMaxwellian at kTkT; xlk=xuksupx_l k = x_u k^\mathrm{sup} for every level pair10−610^{-6}
electron numberevery column of the converged operator sums to zero10−910^{-9}
energypower from the field equals the collisional losses, second order in the cell10−410^{-4}

The Reid ramp gas has a constant elastic cross section of 6 A˚26\,\text{Å}^2 and an excitation of 10(ε−0.2) A˚2/eV10(\varepsilon - 0.2)\,\text{Å}^2/\mathrm{eV}, with M=4M = 4 u in a cold gas (Reid, Aust. J. Phys. 32, 231 (1979)). The Lucas–Saelee gas has σm=4ε−1/2 A˚2\sigma_m = 4\varepsilon^{-1/2}\,\text{Å}^2 and an ionization of 0.1(ε−15.6) A˚2/eV0.1(\varepsilon - 15.6)\,\text{Å}^2/\mathrm{eV} with me/M=10−3m_e/M = 10^{-3}, as restated by Flynn et al., J. Phys. D 57, 255204 (2024). At 1000 Td BOLOS on the same grid differs by 1 %, and converges to the result of solve_eedf as its grid is refined.

The LoKI-B reference was computed with LoKI-B++ (the C++ version of the LisbOn KInetics Boltzmann solver, Tejero-del-Caz et al., Plasma Sources Sci. Technol. 28, 043001 (2019); version 1.0, commit add5518) on synthetic cross sections, since LXCat’s data may not be redistributed:

  • an argon-like gas (elastic, an excitation at 11.5 eV, ionization at 15.75 eV, attachment around 6 eV) at 100, 300 and 1000 Td, with LoKI-B’s temporal and spatial growth models and its equalSharing and usingSDCS (Opal–Peterson–Beaty, w=10w = 10 eV) ionization operators;
  • an H2-like gas at 300 K: rotational levels J=0J = 0–9 of v=0v = 0 with H2’s rotational constant (2−72^{-7} eV) and nuclear-spin weights, Gerjuoy–Stein J→J+2J \to J + 2 excitations, a vibrational excitation v=0→1v = 0 \to 1 (0.5 eV) with v=1v = 1 populated at 2000 K, an electronic excitation and ionization, at 1, 10, 30 and 100 Td. Every rotational and the vibrational excitation is reversible; the superelastic collisions raise the mean energy at 1 Td by 40 %.

LoKI-B is first order in its energy step, and its results on 4096 and 2048 cells differ by 10−510^{-5} to 10−310^{-3}. On LoKI-B’s grid with 1000 cells, solve_eedf agrees with it to within twice that difference (and with LoKI-B extrapolated to a zero step to about 10−410^{-4}), for the mean energy, μN\mu N, DNDN, the effective Townsend coefficient of spatial growth, the net ionization of temporal growth, and every inelastic and superelastic rate above 10−25 m3/s10^{-25}\,\mathrm{m^3/s}; the distributions agree to 0.5 % over six decades. On its default grid (200 cells) it is within 0.2 %, 0.6 % at 1000 Td. LoKI-B’s Townsend coefficient is kiz/wk_{iz}/w in temporal growth, so the comparison there is of the net ionization rate. The example prints the Reid comparison.

The whole suite runs on NumPy and on cunumpy’s stand-in for CuPy in CI, and the combined coverage of the two runs is 100 %. The examples plot several of these comparisons.