Skip to content
Projects

Two-term Boltzmann solver

The equations of plasmacoll.boltzmann, declared on the code that implements them and checked by the tests.

BoltzmannSolution

classsource

The steady electron energy distribution in a field and what follows from it.

mobility
μN=−γ3∫εσ~m dF0dε dε,DN=γ3∫εσ~m F0 dε\mu N = -\frac{\gamma}{3}\int \frac{\varepsilon}{\tilde\sigma_m}\,\frac{dF_0}{d\varepsilon}\,d\varepsilon, \qquad DN = \frac{\gamma}{3}\int \frac{\varepsilon}{\tilde\sigma_m}\,F_0\,d\varepsilon
mean energy
⟨ε⟩=∫ε3/2F0 dε,kj=γ∫ε σjF0 dε\langle\varepsilon\rangle = \int \varepsilon^{3/2} F_0\,d\varepsilon, \qquad k_j = \gamma\int \varepsilon\,\sigma_j F_0\,d\varepsilon
townsend
(αN)2DN−αN μN EN+νˉN=0(the smaller root),νˉN=∑izxjkj−∑attxjkj\Big(\frac{\alpha}{N}\Big)^2 DN - \frac{\alpha}{N}\,\mu N\,\frac{E}{N} + \frac{\bar\nu}{N} = 0 \quad \text{(the smaller root)}, \qquad \frac{\bar\nu}{N} = \sum_\mathrm{iz} x_j k_j - \sum_\mathrm{att} x_j k_j
derived
w=μN EN,ϵk=DNμN,f(ε)=ε1/2F0w = \mu N\,\frac{E}{N}, \qquad \epsilon_k = \frac{DN}{\mu N}, \qquad f(\varepsilon) = \varepsilon^{1/2} F_0
power
(EN)2μN+∑supxu,j ΔEj kjsup=γ∫ε2σε(F0+kTdF0dε)dε+∑jxj ΔEj kj+Pgrowth\Big(\frac{E}{N}\Big)^2 \mu N + \sum_\mathrm{sup} x_{u,j}\,\Delta E_j\,k^\mathrm{sup}_j = \gamma\int \varepsilon^2\sigma_\varepsilon\Big(F_0 + kT\frac{dF_0}{d\varepsilon}\Big)d\varepsilon + \sum_j x_j\,\Delta E_j\,k_j + P_\mathrm{growth}
discrete
μN=−γ3∑kεk+1/2σ~m(Fk+1−Fk),DN=γ3∑kεkσ~m(εk)Fkh,⟨ε⟩=∑kFk 25Δ(ε5/2)k\mu N = -\frac{\gamma}{3}\sum_{k} \frac{\varepsilon_{k+1/2}}{\tilde\sigma_m}(F_{k+1} - F_k), \quad DN = \frac{\gamma}{3}\sum_k \frac{\varepsilon_k}{\tilde\sigma_m(\varepsilon_k)} F_k h, \quad \langle\varepsilon\rangle = \sum_k F_k\,\tfrac25\Delta\big(\varepsilon^{5/2}\big)_k
Assumes
  • kjk_j per molecule of the process's own gas, also for elastic processes; the discriminant of α/N\alpha/N clipped at zero
  • the power gained in spatial growth is EN(ENμN−αNDN)\frac{E}{N}\big(\frac{E}{N}\mu N - \frac{\alpha}{N} DN\big); PgrowthP_\mathrm{growth} is the energy the attached electrons take plus νˉN⟨ε⟩\frac{\bar\nu}{N}\langle\varepsilon\rangle (temporal) or minus the spatial source's energy moment
  • power_balance is (gained - lost) / gained, a measure of the discretisation error; NaN without a field and superelastic collisions
References

solve_eedf

functionsource

Return the steady electron energy distribution in a uniform DC field.

boltzmann
ddε(WF0−D dF0dε)=S,∫ε1/2F0 dε=1\frac{d}{d\varepsilon}\Big(W F_0 - D\,\frac{dF_0}{d\varepsilon}\Big) = S, \qquad \int \varepsilon^{1/2} F_0\,d\varepsilon = 1
coefficients
W=−γ ε2σε,D=γ3(EN)2εσ~m+γ kT ε2σε,γ=2emeW = -\gamma\,\varepsilon^2 \sigma_\varepsilon, \qquad D = \frac{\gamma}{3}\Big(\frac{E}{N}\Big)^2 \frac{\varepsilon}{\tilde\sigma_m} + \gamma\,kT\,\varepsilon^2 \sigma_\varepsilon, \qquad \gamma = \sqrt{\frac{2e}{m_e}}
superelastic
σjsup(ε)=glgu(1+ΔEjε) σj(ε+ΔEj) on the upper state, fraction xu,j=xgas pu\sigma^\mathrm{sup}_j(\varepsilon) = \frac{g_l}{g_u}\Big(1 + \frac{\Delta E_j}{\varepsilon}\Big)\,\sigma_j(\varepsilon + \Delta E_j) \ \text{on the upper state, fraction } x_{u,j} = x_\mathrm{gas}\,p_u
cross sections
σε=∑elasticxj 2meMj σj,σm=∑allxjσj+∑supxu,jσjsup,σ~m={max⁡(σm+νˉNγε1/2, 0.01 σm)temporal growthσmspatial growth\sigma_\varepsilon = \sum_\mathrm{elastic} x_j\,\frac{2m_e}{M_j}\,\sigma_j, \qquad \sigma_m = \sum_\mathrm{all} x_j \sigma_j + \sum_\mathrm{sup} x_{u,j}\sigma^\mathrm{sup}_j, \qquad \tilde\sigma_m = \begin{cases} \max\Big(\sigma_m + \dfrac{\bar\nu}{N\gamma\varepsilon^{1/2}},\ 0.01\,\sigma_m\Big) & \text{temporal growth} \\ \sigma_m & \text{spatial growth} \end{cases}
growth
S+=−νˉNε1/2F0 (temporal);W+=−γ3ENαNεσm,S+=γ3αN(ENεσmdF0dε+αNεσmF0) (spatial)S \mathrel{+}= -\frac{\bar\nu}{N}\varepsilon^{1/2} F_0 \ \text{(temporal)}; \qquad W \mathrel{+}= -\frac{\gamma}{3}\frac{E}{N}\frac{\alpha}{N}\frac{\varepsilon}{\sigma_m}, \quad S \mathrel{+}= \frac{\gamma}{3}\frac{\alpha}{N}\Big(\frac{E}{N}\frac{\varepsilon}{\sigma_m}\frac{dF_0}{d\varepsilon} + \frac{\alpha}{N}\frac{\varepsilon}{\sigma_m}F_0\Big) \ \text{(spatial)}
flux
Jk+1/2=Dh[B(−z) Fk−B(z) Fk+1],z=WhD,B(z)=zez−1J_{k+1/2} = \frac{D}{h}\big[B(-z)\,F_k - B(z)\,F_{k+1}\big], \qquad z = \frac{Wh}{D}, \qquad B(z) = \frac{z}{e^z - 1}
collisions
F0(ε)=Fk esk(ε−εk) in cell k,qn=γ εnσ(εn) ωn esk(εn−εk),Akk+=xj∑n∈kqnF_0(\varepsilon) = F_k\,e^{s_k(\varepsilon - \varepsilon_k)} \text{ in cell } k, \qquad q_n = \gamma\,\varepsilon_n \sigma(\varepsilon_n)\,\omega_n\,e^{s_k(\varepsilon_n - \varepsilon_k)}, \qquad A_{kk} \mathrel{+}= x_j\sum_{n \in k} q_n
kernel
Kcnuniform=2 ∣[εc−1/2,εc+1/2]∩[0,r]∣r,KcnOpal=G(εc+1/2)−G(εc−1/2)+G(r−εc−1/2)−G(r−εc+1/2),G(E)=arctan⁡(min⁡(E,r/2)/w)arctan⁡(r/2w),r=εn−ΔEK_{cn}^\mathrm{uniform} = \frac{2\,\big|[\varepsilon_{c-1/2}, \varepsilon_{c+1/2}] \cap [0, r]\big|}{r}, \qquad K_{cn}^\mathrm{Opal} = G(\varepsilon_{c+1/2}) - G(\varepsilon_{c-1/2}) + G(r - \varepsilon_{c-1/2}) - G(r - \varepsilon_{c+1/2}), \qquad G(E) = \frac{\arctan(\min(E, r/2)/w)}{\arctan(r/2w)}, \quad r = \varepsilon_n - \Delta E
normalisation
∑kwkFk=1,wk=23(εk+1/23/2−εk−1/23/2)\sum_k w_k F_k = 1, \qquad w_k = \tfrac23\big(\varepsilon_{k+1/2}^{3/2} - \varepsilon_{k-1/2}^{3/2}\big)
Order
2
Assumes
  • two-term expansion in a uniform DC field; xjx_j the mole fractions from the mixture's densities; kTkT the density-weighted gas temperature unless given
  • a state's fraction is its population pp times the fraction of its gas, its mass that of the gas
  • excitation and dissociation move electrons down by ΔE\Delta E (into the cell of ε−ΔE\varepsilon - \Delta E), superelastic collisions up (into the cell of ε+ΔE\varepsilon + \Delta E, only from ε+ΔE\varepsilon + \Delta E below the grid end, with εσsup\varepsilon\sigma^\mathrm{sup} evaluated from σj\sigma_j so that it stays finite at ε=0\varepsilon = 0); ionization replaces one electron by two sharing ε−ΔE\varepsilon - \Delta E (equal: the cell of (ε−ΔE)/2(\varepsilon - \Delta E)/2, twice; uniform and Opal: the kernel KK, whose columns sum to 2); attachment removes them: the columns of the operator sum to zero, so particles are conserved exactly
  • uniform grid of NN = num_cells (200) cells, FkF_k at the centres; B(z)=1−z/2B(z) = 1 - z/2 for ∣z∣<10−10|z| < 10^{-10}, DD floored at 10−30010^{-300}; no flux through ε=0\varepsilon = 0 and the grid end
  • collision integrals by 3-point Gauss-Legendre on the sub-intervals between the edges, table energies, threshold and the edges shifted by ΔE\Delta E (by −ΔE-\Delta E for superelastic, 2ε+ΔE2\varepsilon + \Delta E for equal sharing); sks_k the harmonic mean (van Leer) of the one-sided differences of ln⁡max⁡(F,10−300)\ln\max(F, 10^{-300}), zero at an extremum, clipped to ±50/h\pm 50/h
  • spatial growth: the gradient term split half and half to the cells next to each edge, the (α/N)2(\alpha/N)^2 term diagonal
  • the first row replaced by the normalisation; a dense solve per iteration, negative values clipped; iterated (damped when the error grows) until ∑k∣ΔFk∣wk<\sum_k |\Delta F_k| w_k < rtol (10−810^{-8})
  • without max_energy the grid end is adjusted (from 10 eV, at most 40 times, with temporal growth) until F0F_0 falls by 10 to 20 decades across the grid; spatial growth is then solved on that grid from the temporal solution
  • the gas temperature enters the inelastic terms only through the superelastic collisions of the populated levels; not included: electron-electron collisions, the continuous approximation for rotations (CAR), the O(me/M)O(m_e/M) frame correction of table energies; elastic processes with the momentum-transfer cross section (isotropic) only
  • the order is that of the mean energy on a fixed grid (Reid's ramp model)
References
Built from

SwarmTable

classsource

Solutions over a range of reduced fields, tabulated against the mean energy.

interpolation
ln⁡q(⟨ε⟩) linear in ln⁡⟨ε⟩;q itself linear in ln⁡⟨ε⟩ for a column with negative values\ln q(\langle\varepsilon\rangle) \text{ linear in } \ln\langle\varepsilon\rangle; \quad q \text{ itself linear in } \ln\langle\varepsilon\rangle \text{ for a column with negative values}
temperature
Te=23 ⟨ε⟩T_e = \tfrac23\,\langle\varepsilon\rangle
Assumes
  • clamped to the table; a zero stays zero; refuses a mean energy that does not increase with the field
  • TeT_e the temperature of rate_table, the effective electron temperature of fluid and global models
Built from