Skip to content
Projects

Neutralizer

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

FastBeam

classsource

The incoming beam.

stripped
Ef=meMb EbE_f = \frac{m_e}{M_b}\, E_b
particle rate
N˙b=Ie∑s∣qs∣Fsin(Ie for a neutral entrance beam)\dot N_b = \frac{I}{e \sum_s |q_s| F^\mathrm{in}_s} \quad \left(\frac{I}{e} \text{ for a neutral entrance beam}\right)
Assumes
  • EfE_f the energy of an electron moving with the beam: 272 eV for 1 MeV D−^-

knudsen

functionsource

Knudsen diffusion from a feed at feed (m; the middle by default) to the ends.

flux
Γ=−Ddndz,D=43 vˉ AP,vˉ=8eTπM\Gamma = -D \frac{dn}{dz}, \qquad D = \frac{4}{3}\,\bar v\, \frac{A}{P}, \qquad \bar v = \sqrt{\frac{8 e T}{\pi M}}
exit
Γ=nvˉ2at an open end\Gamma = \frac{n \bar v}{2} \quad \text{at an open end}
resistance
Rside=zsideDA+2vˉAR_\mathrm{side} = \frac{z_\mathrm{side}}{D A} + \frac{2}{\bar v A}
peak
nfeed=N˙ RLRRRL+RR,N˙side=nfeedRsiden_\mathrm{feed} = \dot N\, \frac{R_L R_R}{R_L + R_R}, \qquad \dot N_\mathrm{side} = \frac{n_\mathrm{feed}}{R_\mathrm{side}}
Assumes
  • free-molecular flow: the density is linear on either side of the feed and scales with N˙\dot N and 1/vˉ1/\bar v
  • Knudsen's long-duct diffusivity (A=whA = wh, P=2(w+h)P = 2(w + h)) by default; Marshak's exit condition
  • picnic's kinetic runs give 0.81 of the slot value at 10 widths and 1.0 at 30 (docstring, not checked here)

beam_sources

functionsource

The beam's sources for the plasma where the beam is flux, fractions, energy.

rate
S=ΓbFs wgσ(Eb) ntargetS = \Gamma_b F_s\, w_g \sigma(E_b)\, n_\mathrm{target}
stripping
s→s′, Δq=qs′−qs>0:δne=+Δq,εe=Δq f meMbEbs \to s',\ \Delta q = q_{s'} - q_s > 0: \quad \delta n_e = +\Delta q, \qquad \varepsilon_e = \Delta q\, f\, \frac{m_e}{M_b} E_b
capture
Δq<0 on gas g:δng=Δq,δng+=−Δq,εe=0\Delta q < 0 \text{ on gas } g: \quad \delta n_g = \Delta q, \quad \delta n_{g^+} = -\Delta q, \quad \varepsilon_e = 0
gas ionization
δng=−1, δng+=+1, δne=+1,εe=εsec(s)\delta n_g = -1,\ \delta n_{g^+} = +1,\ \delta n_e = +1, \qquad \varepsilon_e = \varepsilon_\mathrm{sec}(s)
Assumes
  • Γb\Gamma_b the beam particle flux, FsF_s the fraction in state ss; gg the fed gas (wg=1w_g = 1) and every atoms entry
  • captures on the plasma are not sources; a source is skipped where σ≤0\sigma \le 0 or no beam is in state ss
  • ff = fast_electron_deposition; εsec\varepsilon_\mathrm{sec} the data's mean secondary energy, else secondary_energy

fractions

functionsource

The positions along the channel and the beam's fractions there.

rate equations
dFsdz=∑tnt(z)∑s′≠s(σs′stFs′−σss′tFs),F(0)=Fin\frac{dF_s}{dz} = \sum_{t} n_t(z) \sum_{s' \ne s} \left(\sigma^t_{s's} F_{s'} - \sigma^t_{ss'} F_s\right), \qquad F(0) = F^\mathrm{in}
line density
πgas(z)=⟨ngas⟩∫0zngas(z′)⟨ngas⟩dz′+natomsz,πplasma(z)=nez\pi_\mathrm{gas}(z) = \langle n_\mathrm{gas}\rangle \int_0^z \frac{n_\mathrm{gas}(z')}{\langle n_\mathrm{gas}\rangle} dz' + n_\mathrm{atoms} z, \qquad \pi_\mathrm{plasma}(z) = n_e z
means
⟨Fs⟩=1L∫0LFs dz,⟨Fs⟩gas=⟨Fsn⟩⟨n⟩\langle F_s\rangle = \frac{1}{L}\int_0^L F_s\, dz, \qquad \langle F_s\rangle_\mathrm{gas} = \frac{\langle F_s n\rangle}{\langle n\rangle}
Assumes
  • plasmacoll's charge_state_fractions on the line densities; the integrals by the trapezoidal rule on points positions
  • the atoms weighted by their atoms weight, uniform along the channel like the plasma
  • the plasma target's density is nen_e (standing for the ion density)

local_plasma

functionsource

The plasma of every axial slice in its own gas and beam (position).

slice
a GlobalModel per metre at each zk:V=wh,Aw=2(w+h),ngas(zk)=ngas n(zk)⟨n⟩\text{a } \texttt{GlobalModel} \text{ per metre at each } z_k: \quad V = wh, \quad A_w = 2(w + h), \quad n_\mathrm{gas}(z_k) = n_\mathrm{gas}\, \frac{n(z_k)}{\langle n\rangle}
sources
Sk=Γb Fs(zk) σ n,Lc→LcL with cuspsS_k = \Gamma_b\, F_s(z_k)\, \sigma\, n, \qquad L_c \to \frac{L_c}{L} \text{ with cusps}
Assumes
  • neutrals held at their local densities, TgT_g the converged one; ions leave through the side walls only
  • wall reactions are not passed (the neutrals are fixed)
Built from

pumping_speed

functionsource

Volume per second (m^3/s) leaving through both ends at the gas temperature (eV).

uniform
Sp=2 τ vˉ4 wh,vˉ=8eTgπMS_p = 2\,\tau\, \frac{\bar v}{4}\, w h, \qquad \bar v = \sqrt{\frac{8 e T_g}{\pi M}}
profile
Sp=N˙in⟨n⟩TgTprofS_p = \frac{\dot N_\mathrm{in}}{\langle n\rangle} \sqrt{\frac{T_g}{T_\mathrm{prof}}}
Assumes
  • free-molecular outflow through the two open ends with the transmission τ\tau (uniform gas)
  • with a GasProfile: its inflow over its mean density, scaled with the mean speed
Built from

solve

functionsource

Iterate the beam fractions and the plasma to a fixed point.

fixed point
⟨F⟩k+1=(1−r)⟨F⟩k+r ⟨F⟩ ⁣(ngask,nek),nk=steady state of the channel’s GlobalModel(⟨F⟩k)\langle F\rangle^{k+1} = (1 - r)\langle F\rangle^k + r\, \langle F\rangle\!\left(n^{k}_\mathrm{gas}, n^{k}_e\right), \qquad n^{k} = \text{steady state of the channel's } \texttt{GlobalModel}(\langle F\rangle^k)
stop
max⁡s∣Δ⟨Fs⟩∣<tolerance  and the plasma converged\max_s \left|\Delta\langle F_s\rangle\right| < \text{tolerance} \ \text{ and the plasma converged}
chamber
V=Lwh,Aw=2L(w+h),Aloss=2wh (cusps) or 2L(w+h)+2whV = L w h, \qquad A_w = 2L(w + h), \qquad A_\mathrm{loss} = 2wh \ (\text{cusps}) \text{ or } 2L(w + h) + 2wh
Assumes
  • rr = relaxation (0.5), tolerance 10−610^{-6}, at most max_iterations (200) passes
  • the start: no plasma, the gas density N˙/Sp(Tg)\dot N / S_p(T_g); pumping at the previous pass's TgT_g
  • the limit of complete mixing along the channel; local_plasma is that of no mixing
Built from