Skip to content
Projects

Rate models

The equations of opencr.core.rates, declared on the code that implements them and checked by the tests.

Arrhenius

classsource

k = a T^b exp(-c / T) with T in eV and k in SI.

arrhenius
k=a Tb e−c/Tk = a\,T^b\,e^{-c/T}
Assumes
  • TT in eV, kk in the SI unit of the reaction's order; cc is the threshold taken out before evaluation

Constant

classsource

A rate coefficient independent of temperature, e.g. an Einstein A in s^-1.

constant
k=const,e.g. k=g Aul for a line with escape factor gk = \mathrm{const}, \qquad \text{e.g. } k = g\,A_{ul} \text{ for a line with escape factor } g
Assumes
  • no temperature (depends_on is none): Einstein coefficients, wall losses, pumping

CrossSectionRate

classsource

A rate from a cross section averaged over a velocity distribution.

maxwellian
k(T)=8πμ (kT)−3/2∫Eth∞σ(E) E e−E/kT dEk(T) = \sqrt{\frac{8}{\pi\mu}}\,(kT)^{-3/2} \int_{E_{\mathrm{th}}}^\infty \sigma(E)\,E\,e^{-E/kT}\,dE
lab frame
Elab=E mincμE_{\mathrm{lab}} = E\,\frac{m_{\mathrm{inc}}}{\mu}
eedf
k=2eme∫0∞ε σ(ε) F0(ε) dεk = \sqrt{\frac{2e}{m_e}} \int_0^\infty \varepsilon\,\sigma(\varepsilon)\,F_0(\varepsilon)\,d\varepsilon
Assumes
  • σ\sigma a plasmacoll CrossSection: linear between the table points, held at the last value above, zero below the threshold
  • a Maxwellian of the reduced mass μ\mu at TeT_e, TiT_i or TgasT_{\mathrm{gas}} (depends_on); for electrons the conditions' EEDF when it is not Maxwellian
  • a lab-frame table (target at rest) is read at ElabE_{\mathrm{lab}}; a centre-of-mass table at EE
References
Built from

DetailedBalance

classsource

The inverse of another reaction of the network, by detailed balance.

inverse
kinv(T)=kfwd(T) gingout eΔE/T (Λ3)Δe,Λ3=(h22πmekT)3/2k_{\mathrm{inv}}(T) = k_{\mathrm{fwd}}(T)\,\frac{g_{\mathrm{in}}}{g_{\mathrm{out}}}\, e^{\Delta E/T}\,\big(\Lambda^3\big)^{\Delta e}, \qquad \Lambda^3 = \left(\frac{h^2}{2\pi m_e kT}\right)^{3/2}
klein rosseland
σul(ε)=glgu ε+ΔEε σlu(ε+ΔE)\sigma_{ul}(\varepsilon) = \frac{g_l}{g_u}\,\frac{\varepsilon + \Delta E}{\varepsilon}\,\sigma_{lu}(\varepsilon + \Delta E)
Assumes
  • gin,goutg_{\mathrm{in}}, g_{\mathrm{out}} the products of the weights of the forward reactants and products (ge=2g_e = 2), ΔE\Delta E the forward energy change from the state energies
  • the same number of heavy particles on both sides of the forward reaction and Δe≥0\Delta e \ge 0 extra electrons among its products: Boltzmann (Δe=0\Delta e = 0) or Saha (Δe=1\Delta e = 1)
  • with a non-Maxwellian EEDF an electron-impact excitation is inverted by its Klein-Rosseland cross section; a Saha inverse uses the Maxwellian forward rate at TeffT_{\mathrm{eff}}
References
Built from

Function

classsource

k(T) from a Python function of the temperature in eV (array in, array out).

function
k=f(T)k = f(T)
tabulation
Ti=10−2+6i/240 eV,i=0,…,240,then as TabulatedT_i = 10^{-2 + 6 i / 240}\ \mathrm{eV}, \quad i = 0, \dots, 240, \qquad \text{then as } \texttt{Tabulated}
Assumes
  • ff is host Python code; files and the JAX backend use its table
  • kk itself is returned, so the threshold scaling does not protect it: kk underflows to zero once Eth/T≳708E_{\mathrm{th}}/T \gtrsim 708, and so does an inverse of it
Built from

Tabulated

classsource

k(T) from a table, interpolated linearly in log k against log T.

interpolation
ln⁡ ⁣(k eEth/T) linear in ln⁡T between the table points\ln\!\big(k\, e^{E_{\mathrm{th}}/T}\big) \text{ linear in } \ln T \text{ between the table points}
extrapolation
k(T)=kend eEth/Tend−Eth/Toutside the table (ln⁡T clipped)k(T) = k_{\mathrm{end}}\, e^{E_{\mathrm{th}}/T_{\mathrm{end}} - E_{\mathrm{th}}/T} \quad \text{outside the table } (\ln T \text{ clipped})
Order
2
Assumes
  • the order is in the table spacing in ln⁡T\ln T, for a smooth ln⁡(k eEth/T)\ln(k\,e^{E_{\mathrm{th}}/T})
  • outside the table the scaled quantity k eEth/Tk\,e^{E_{\mathrm{th}}/T} holds its end value, not kk itself