Caesium in hydrogen
Caesium evaporated into a negative-ion source is ionized by the plasma electrons
and scatters on the H₂ gas. plasmacoll.caesium holds these collisions: the
electrons are a background with and , and an ionization turns a
Cs marker into a Cs⁺ of the same weight; the new electron is not tracked.
import cunumpy as xpimport numpy as np
import plasmacollfrom plasmacoll.caesium import H2_MASSfrom plasmacoll.constants import ELECTRON_MASS
sigma = plasmacoll.caesium_ionization_cross_section()energy = np.geomspace(3.0, 1000.0, 400)with pp.figure(title="e + Cs → Cs⁺ + 2e (Lotz, 6s)") as fig: ax = fig[0] ax.loglog(energy, xp.to_numpy(sigma(xp.asarray(energy)))) ax.set_xlabel("electron energy [eV]") ax.set_ylabel(r"cross section $\sigma$ [m$^2$]") ax.set_ylim(1e-21, 3e-19)Rate and ionization length
Section titled “Rate and ionization length”The rate coefficient over a Maxwellian sets the ionization frequency . A Cs atom evaporated at 0.1 eV (about 380 m/s) travels before it is ionized.
temperature = np.geomspace(0.5, 20.0, 60)rate = plasmacoll.rate_coefficient(sigma, temperature, ELECTRON_MASS)speed = 380.0with pp.figure(title="Ionization length of caesium") as fig: ax = fig[0] for density in (1e16, 1e17, 1e18): ax.loglog( temperature, speed / (density * rate), label=f"$n_e$ = {density:.0e} m⁻³" ) ax.set_xlabel("electron temperature $T_e$ [eV]") ax.set_ylabel("ionization length $\\lambda$ [m]") ax.legend()Markers
Section titled “Markers”caesium_collisions builds the collision operator for Cs and Cs⁺ markers on
the electron background and the H₂ gas. Markers at rest in a plasma with
m⁻³ and eV ionize at :
electrons = plasmacoll.electron_background(1e17, 2.0)gas = plasmacoll.NeutralBackground("H2", 1e19, 0.03, H2_MASS)mcc = plasmacoll.caesium_collisions(electrons, gas, seed=1)num, dt = 1_000_000, 2e-7result = mcc.collide("Cs", xp.zeros((num, 1)), xp.zeros((num, 3)), xp.ones(num), dt)k = float(plasmacoll.rate_coefficient(sigma, 2.0, ELECTRON_MASS))print("ionized:", result.diagnostics.counts["ionization:Cs"])print("expected:", round(num * 1e17 * k * dt))ionized: 567expected: 576The Cs + H₂ cross section is a hard-sphere placeholder and the Lotz formula leaves out the 5p shell; see the module docstring for the sources.