The equations of carafe.global_model, declared on the code that implements them and checked by the tests.
Return the effective area in m^2 through which an ion leaves at u_B.
- area
- Ai=hAloss+Lcw(Te,Tg,Mi)
- Assumes
- h∈(0,1] the edge-to-centre density ratio, an input
- Aloss the unconfined area, the whole wall by default; the cusp area depends on the ion's mass, so each ion has its own Ai
- References
- Lieberman and Lichtenberg, Principles of Plasma Discharges and Materials Processing, 2nd ed. (2005), ch. 10
- Built from
Return the leak width in m.
- leak width
- w=4ρeρi,ρ=eBmeT
- area
- Acusp=Lcw
- Assumes
- the gyroradius at the thermal speed eT/m: Te for ρe, Tg for ρi
- B the cusp field at the wall, Lc the total length of the cusp lines
- References
- Bosch and Merlino (1986), the hybrid leak width
The gas temperature as a balance: heating by the reactions against conduction.
- balance
- cNdtdTg=reactions∑Rεg−Λ2κ(Tg−Tw)kB1
- Assumes
- N the total neutral density, fixed species included; c the heat capacity per particle in kB
- conduction to the walls over the diffusion length Λ; the eV difference converted with e/kB
- c only sets the time scale of Tg: the steady state does not depend on it
The balances of a plasma in a chamber; see the module docstring.
- particles
- dtdns=reactions∑νsR+sources∑csS−Γsw+walls∑(products)+VFs−VnsSp
- sources
- S=rate(Te,Tg[,n])per∏n,ne=s∑Zsns
- ion wall loss
- Γiw=niMieTeVAi
- neutral wall loss
- Γnw=γ4vˉnVAw,vˉ=πm8eTg
- electron wall loss
- Γe=Γ++q˙−,Γ+=i∑ZiΓiw,q˙−=−sources∑s∑ZscsS
- energy
- dtd(23neTe)=eVPabs−∑Rεe+∑Sεsrc−Pw
- wall energy
- Pw=2TeΓe+21Tei∑Γiw+Γ+Δϕ+(Γe−Γ+)(21Te+Δϕ)
- sheath
- Δϕ=Γ+∑iZiΓiwVf,i−TelnΓ+Γe,Vf,i=Teln2πmeMi
- Assumes
- a uniform plasma with Maxwellian electrons; Bohm losses need λD≪ the chamber
- νs the stoichiometric change, cs the change per source event, Fs the feed (1/s), Sp the pumping speed (unknown neutrals only)
- negative ions do not reach the walls; the Bohm speed carries no factor Z
- the presheath 21Te is per ion and the sheath drop per charge, the same only for Z=1
- ne floored at 1 m−3 in the energy equation; a fixed species' dn/dt is reported, not integrated
- References
- Lieberman and Lichtenberg, Principles of Plasma Discharges and Materials Processing, 2nd ed. (2005), ch. 10
- Built from
Return the steady state.
- unknowns
- u=(lnns, lnTe, [lnTg]),dtdlnu=uu˙
- pseudo time
- BDF from t=0 to tmax until maxdtdlnu<10−6σ,σ=max(smaxnsgrosss, 1)
- polish
- Powell’s hybrid root finder on dtdlnu=0 (tol 10−13)
- converged
- maxdtdlnu<tolerance⋅σ
- Assumes
solve_ivp(method='BDF', rtol=1e-6, atol=1e-9); the BDF end point is kept if the root finder fails- start: given densities, else positive ions 10−4, negative ions 10−6, neutrals 10−2 of the fixed gas density, Te=3 eV
- the log state clipped to ±600 (densities) and ±100 (temperatures)
thermalize_electrons pulls lnTe up to lnTg on 10−8 s