The equations of carafe.neutralizer, declared on the code that implements them and checked by the tests.
The incoming beam.
- stripped
- Ef=MbmeEb
- particle rate
- N˙b=e∑s∣qs∣FsinI(eI for a neutral entrance beam)
- Assumes
- Ef the energy of an electron moving with the beam: 272 eV for 1 MeV D−
Knudsen diffusion from a feed at feed (m; the middle by default) to the ends.
- flux
- Γ=−Ddzdn,D=34vˉPA,vˉ=πM8eT
- exit
- Γ=2nvˉat an open end
- resistance
- Rside=DAzside+vˉA2
- peak
- nfeed=N˙RL+RRRLRR,N˙side=Rsidenfeed
- Assumes
- free-molecular flow: the density is linear on either side of the feed and scales with N˙ and 1/vˉ
- Knudsen's long-duct diffusivity (A=wh, 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)
The beam's sources for the plasma where the beam is flux, fractions, energy.
- rate
- S=ΓbFswgσ(Eb)ntarget
- stripping
- s→s′, Δq=qs′−qs>0:δne=+Δq,εe=ΔqfMbmeEb
- capture
- Δq<0 on gas g:δng=Δq,δng+=−Δq,εe=0
- gas ionization
- δng=−1, δng+=+1, δne=+1,εe=εsec(s)
- Assumes
- Γb the beam particle flux, Fs the fraction in state s; g the fed gas (wg=1) and every
atoms entry - captures on the plasma are not sources; a source is skipped where σ≤0 or no beam is in state s
- f =
fast_electron_deposition; εsec the data's mean secondary energy, else secondary_energy
The positions along the channel and the beam's fractions there.
- rate equations
- dzdFs=t∑nt(z)s′=s∑(σs′stFs′−σss′tFs),F(0)=Fin
- line density
- πgas(z)=⟨ngas⟩∫0z⟨ngas⟩ngas(z′)dz′+natomsz,πplasma(z)=nez
- means
- ⟨Fs⟩=L1∫0LFsdz,⟨Fs⟩gas=⟨n⟩⟨Fsn⟩
- 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 ne (standing for the ion density)
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⟩n(zk)
- sources
- Sk=ΓbFs(zk)σn,Lc→LLc with cusps
- Assumes
- neutrals held at their local densities, Tg the converged one; ions leave through the side walls only
- wall reactions are not passed (the neutrals are fixed)
- Built from
Volume per second (m^3/s) leaving through both ends at the gas temperature (eV).
- uniform
- Sp=2τ4vˉwh,vˉ=πM8eTg
- profile
- Sp=⟨n⟩N˙inTprofTg
- Assumes
- free-molecular outflow through the two open ends with the transmission τ (uniform gas)
- with a
GasProfile: its inflow over its mean density, scaled with the mean speed
- Built from
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)
- stop
- smax∣Δ⟨Fs⟩∣<tolerance and the plasma converged
- chamber
- V=Lwh,Aw=2L(w+h),Aloss=2wh (cusps) or 2L(w+h)+2wh
- Assumes
- r =
relaxation (0.5), tolerance 10−6, at most max_iterations (200) passes - the start: no plasma, the gas density N˙/Sp(Tg); pumping at the previous pass's Tg
- the limit of complete mixing along the channel;
local_plasma is that of no mixing
- Built from