Skip to content
Projects

Drift fluid 2D

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

argon_excitation_rate

functionsource

Excitation rate coefficient of argon (lumped, 11.56 eV), m^3/s.

rate
Kex=2.48×10−14 Te0.33 e−12.78/Te[m3/s],εex=11.56 eVK_\mathrm{ex} = 2.48\times10^{-14}\, T_e^{0.33}\, e^{-12.78/T_e} \quad [\mathrm{m^3/s}], \qquad \varepsilon_\mathrm{ex} = 11.56\ \mathrm{eV}
Assumes
  • PLACEHOLDER: one lumped level, the fit of carafe.magnetron.argon_excitation
  • TeT_e held within 0.5–100 eV (RATE_TE_RANGE)

argon_ionization_rate

functionsource

Ionization rate coefficient of argon at a Maxwellian T_e (eV), m^3/s.

rate
Kiz=2.34×10−14 Te0.59 e−17.44/Te[m3/s]K_\mathrm{iz} = 2.34\times10^{-14}\, T_e^{0.59}\, e^{-17.44/T_e} \quad [\mathrm{m^3/s}]
Assumes
  • PLACEHOLDER: the fit as remembered from Lieberman and Lichtenberg, the same as carafe.magnetron.argon_ionization
  • TeT_e held within 0.5–100 eV (RATE_TE_RANGE)

argon_momentum_rate

functionsource

Electron-argon momentum-transfer rate coefficient at T_e (eV), m^3/s.

rate
ken=2.336×10−14exp⁡ ⁣(1.609ln⁡Te+0.0618ln⁡2Te−0.1171ln⁡3Te)[m3/s]k_{en} = 2.336\times10^{-14} \exp\!\left(1.609 \ln T_e + 0.0618 \ln^2 T_e - 0.1171 \ln^3 T_e\right) \quad [\mathrm{m^3/s}]
Assumes
  • PLACEHOLDER: the elastic fit of carafe.magnetron.argon_elastic as a momentum-transfer rate; 1.3×10−131.3\times10^{-13} m³/s at 3 eV
  • TeT_e held within 0.5–100 eV (RATE_TE_RANGE)

boeuf_dispersion_roots

functionsource

Roots omega of Boeuf's local gradient-drift relation, Eq. (1) of arXiv:2211.17051.

relation
(k2λD2ω2−k2cs2)((1+a)ω−ω0−ωD−aω0+iaν)+aω3+(ω∗−ωD−aω0+iaν)ω2=0\left(k^2\lambda_D^2\omega^2 - k^2 c_s^2\right)\left((1 + a)\omega - \omega_0 - \omega_D - a\omega_0 + i a\nu\right) + a\omega^3 + \left(\omega_* - \omega_D - a\omega_0 + i a\nu\right)\omega^2 = 0
frequencies
a=k2ρe2,ω0=−kE0B,ω∗=−kTeBLn,ωD=−2kTeBLBa = k^2\rho_e^2, \qquad \omega_0 = -\frac{k E_0}{B}, \qquad \omega_* = -\frac{k T_e}{B L_n}, \qquad \omega_D = -\frac{2 k T_e}{B L_B}
Assumes
  • magnetised electrons with collisions and finite Larmor radius; unmagnetised cold collisionless ions; Poisson's equation
  • Ln=n/n′L_n = n/n', LB=B/B′L_B = B/B' signed (negative when falling towards the anode); grad_b=False drops ωD\omega_D
  • the drift fluid in the model field B(x)z^B(x)\hat z gives half of ωD\omega_D (carafe.dispersion)
References

DriftFluid2D

classsource

The magnetron plane of the module docstring.

electrons
Γe=−μ⊥(1−hh1)(nE+∇(nTe)),h=ωceν,μ⊥=eνme(ν2+ωce2)\boldsymbol\Gamma_e = -\mu_\perp\begin{pmatrix}1 & -h \\ h & 1\end{pmatrix}\big(n\mathbf E + \nabla(n T_e)\big), \qquad h = \frac{\omega_{ce}}{\nu}, \quad \mu_\perp = \frac{e\nu}{m_e(\nu^2 + \omega_{ce}^2)}
collisions
ν=ken(Te)N+αωce16[11+(B/B∗)4]\nu = k_{en}(T_e) N + \alpha\frac{\omega_{ce}}{16}\left[\frac{1}{1 + (B/B_*)^4}\right]
ions
∂tni+∇⋅(niv)=νizNne,∂tv+v⋅∇v=eME−kinNv−eTiMni∇ni\partial_t n_i + \nabla\cdot(n_i\mathbf v) = \nu_\mathrm{iz} N n_e, \qquad \partial_t\mathbf v + \mathbf v\cdot\nabla\mathbf v = \frac{e}{M}\mathbf E - k_{in} N\mathbf v - \frac{e T_i}{M n_i}\nabla n_i
gas
∂tN=−d νizNne+d kcxMni+νr(N0−N)\partial_t N = -d\,\nu_\mathrm{iz} N n_e + d\,k_{cx} M n_i + \nu_r (N_0 - N)
energy
∂tw=−∇⋅q−s Γe⋅E−3meMνenne(Te−Ti)−εizKizNne−εexKexNne−εMKMMne\partial_t w = -\nabla\cdot\mathbf q - s\,\boldsymbol\Gamma_e\cdot\mathbf E - 3\frac{m_e}{M}\nu_{en} n_e (T_e - T_i) - \varepsilon_\mathrm{iz} K_\mathrm{iz} N n_e - \varepsilon_\mathrm{ex} K_\mathrm{ex} N n_e - \varepsilon_\mathrm{M} K_\mathrm{M} M n_e
poisson
ε0∇2ϕ=−e(ni+nM+−ne)\varepsilon_0\nabla^2\phi = -e(n_i + n_{M^+} - n_e)
metal
∂tM+vM∂xM=−KM(Te)Mne−kcxMni,vMM∣x=0=YAr∣ΓAr+∣+YM∣ΓM+∣\partial_t M + v_M\partial_x M = -K_\mathrm{M}(T_e) M n_e - k_{cx} M n_i, \qquad v_M M\big|_{x=0} = Y_\mathrm{Ar}|\Gamma_{\mathrm{Ar}^+}| + Y_\mathrm{M}|\Gamma_{\mathrm{M}^+}|
metal ions
∂tnM++∇⋅(nM+vM+)=KMMne+kcxMni,∂tvM++vM+⋅∇vM+=eMME−kinNvM+−eTiMMnM+∇nM+\partial_t n_{M^+} + \nabla\cdot(n_{M^+}\mathbf v_{M^+}) = K_\mathrm{M} M n_e + k_{cx} M n_i, \qquad \partial_t\mathbf v_{M^+} + \mathbf v_{M^+}\cdot\nabla\mathbf v_{M^+} = \frac{e}{M_\mathrm{M}}\mathbf E - k_{in} N\mathbf v_{M^+} - \frac{e T_i}{M_\mathrm{M} n_{M^+}}\nabla n_{M^+}
emission
Γe∣x=0=γAr∣ΓAr+∣+γM∣ΓM+∣or the prescribed je0/e\Gamma_e\big|_{x=0} = \gamma_\mathrm{Ar}|\Gamma_{\mathrm{Ar}^+}| + \gamma_\mathrm{M}|\Gamma_{\mathrm{M}^+}| \quad \text{or the prescribed } j_{e0}/e
upwind3
nj−1/2+=−nj−2+5nj−1+2nj6,nj−1/2−=2nj−1+5nj−nj+16n^+_{j-1/2} = \frac{-n_{j-2} + 5 n_{j-1} + 2 n_j}{6}, \qquad n^-_{j-1/2} = \frac{2 n_{j-1} + 5 n_j - n_{j+1}}{6}
Assumes
  • the plane (x,y)(x, y), B=Bz(x)B = B_z(x), periodic yy; inertialess electrons; the energy flux the same operator on ww with 53\tfrac53
  • cell-centred finite volumes on a uniform grid: electrons third-order upwind-biased (by the lagged drift), ions and v⋅∇v\mathbf v\cdot\nabla\mathbf v first-order upwind
  • μ⊥\mu_\perp, hh on the faces from the face gas and B(xf)B(x_f); rates held at their 0.5 and 100 eV values outside
  • no electron inertia, no electron-ion or ion-ion collisions, no race-track curvature, no gas temperature
  • the metal (opt-in, metal): a beam of atoms along xx at metal_speed from the cathode, outflow at the anode; singly charged ions only (doubly charged ones, the efficient emitters, are left out); no electron collisions with MM but its ionization; yields one number per ion species; all its numbers but the mass and EizE_\mathrm{iz} PLACEHOLDERS
References
Built from

linear_modes

functionsource

Linear stability of a y-uniform state to the azimuthal mode mode, x-resolved.

jacobian
J:,j=R(u+ϵjcos⁡(ky) ej)+i R(u+ϵjsin⁡(ky) ej)−(1+i) R(u)ϵj projected on e−ikynyJ_{:,j} = \frac{\mathcal R(u + \epsilon_j \cos(k y)\, e_j) + i\,\mathcal R(u + \epsilon_j\sin(k y)\, e_j) - (1 + i)\,\mathcal R(u)}{\epsilon_j} \text{ projected on } \frac{e^{-iky}}{n_y}
modes
J u^=s u^(numpy.linalg.eig),ϵj=10−6∣uj∣ (velocities 10−6(max⁡∣v∣+1))J\,\hat u = s\,\hat u \quad (\texttt{numpy.linalg.eig}), \qquad \epsilon_j = 10^{-6}|u_j| \ (\text{velocities } 10^{-6}(\max|v| + 1))
Assumes
  • about a yy-uniform state made stationary by sources of its own residual; one azimuthal mode, resolved in xx
  • the potential evaluated twice, so the lagged field is the state's own; frozen holds TeT_e, the ionization rate or the gas

step

functionsource

Advance by dt with SSP-RK3; the potential of the result is that of the last stage.

ssp rk3
u(1)=E(un),u(2)=34un+14E(u(1)),un+1=13un+23E(u(2))u^{(1)} = \mathcal E(u^n), \qquad u^{(2)} = \tfrac34 u^n + \tfrac14\mathcal E(u^{(1)}), \qquad u^{n+1} = \tfrac13 u^n + \tfrac23\mathcal E(u^{(2)})
implicit permittivity
−∇⋅((ε0+Δt σe)∇ϕ)=ρ−Δt ∇⋅Jknown,σe=enμ⊥(1−hh1)-\nabla\cdot\big((\varepsilon_0 + \Delta t\,\boldsymbol\sigma_e)\nabla\phi\big) = \rho - \Delta t\,\nabla\cdot\mathbf J_\mathrm{known}, \qquad \boldsymbol\sigma_e = e n\mu_\perp\begin{pmatrix}1 & -h \\ h & 1\end{pmatrix}
energy loss
wn+1=w+Δt w˙1+Δt ∂wPlossw^{n+1} = w + \frac{\Delta t\,\dot w}{1 + \Delta t\,\partial_w P_\mathrm{loss}}
Order
density: 3, velocity: 3
Assumes
  • each stage E\mathcal E an Euler step with its own potential; electrode fluxes explicit in the previous stage's field, so the discrete Poisson equation of the new densities holds exactly
  • splu(COLAMD) of the fixed pattern, reused with refinement to 10−1210^{-12}; densities floored at 10310^3 m−3^{-3} (floor_added)
  • the order is that of a uniform plasma (ionization and ion friction, rates 2/T2/T); the transport is limited by the CFL step

suggest_timestep

functionsource

A step with Courant number cfl: electron drift, ions, and diffusion.

advection
Δt=cfl(vx+cs)/Δx+(vy+cs)/Δy,cs=e(max⁡Te+Ti)M\Delta t = \frac{\mathrm{cfl}}{(v_x + c_s)/\Delta x + (v_y + c_s)/\Delta y}, \qquad c_s = \sqrt{\frac{e(\max T_e + T_i)}{M}}
diffusion
Δt≤cfl/2D (1/Δx2+1/Δy2),D=53max⁡μ⊥max⁡Te\Delta t \le \frac{\mathrm{cfl}/2}{D\,(1/\Delta x^2 + 1/\Delta y^2)}, \qquad D = \tfrac53\max\mu_\perp\max T_e
Assumes
  • vv the largest face drift or ion speed per axis; max⁡Te\max T_e over the cells with ne>10−3max⁡nen_e > 10^{-3}\max n_e

gradient_drift_roots

functionsource

Roots omega of the local gradient-drift (Simon-Hoh) dispersion relation.

electrons
s ae=(v0eL−ikhv0e)ae+K (Teae−δϕ),K=ik(μ⊥hL+ikμ⊥),v0e=−μ⊥(E0−TeL)s\, a_e = \left(\frac{v_{0e}}{L} - i k h v_{0e}\right) a_e + K\,(T_e a_e - \delta\phi), \qquad K = i k\left(\frac{\mu_\perp h}{L} + i k\mu_\perp\right), \qquad v_{0e} = -\mu_\perp\left(E_0 - \frac{T_e}{L}\right)
ions
s ai=v0iLai−ikv,s v=−νiv−ieMk δϕs\, a_i = \frac{v_{0i}}{L} a_i - i k v, \qquad s\, v = -\nu_i v - i\frac{e}{M} k\,\delta\phi
closure
ε0k2 δϕ=en0(ai−ae) (Poisson)orae=ai (quasi-neutral)\varepsilon_0 k^2\,\delta\phi = e n_0 (a_i - a_e) \ (\text{Poisson}) \quad \text{or} \quad a_e = a_i \ (\text{quasi-neutral})
Assumes
  • n0(x)=n0e−x/Ln_0(x) = n_0 e^{-x/L} in uniform E0E_0 and BB; WKB, kx=0k_x = 0, kLkL large; s=−iωs = -i\omega
  • a bounded box forbids the mode uniform along xx: the growth rate of a box is not this one

uniform_plasma_roots

functionsource

Eigenvalues s of exp(i (k . r) + s t) for a uniform plasma, full Poisson.

electrons
s ae=−(ik⋅v0e+μ⊥k2Te)ae+μ⊥k2 δϕ,v0e=−μ⊥E0(1,h)s\, a_e = -\left(i\mathbf k\cdot\mathbf v_{0e} + \mu_\perp k^2 T_e\right) a_e + \mu_\perp k^2\, \delta\phi, \qquad \mathbf v_{0e} = -\mu_\perp E_0 (1, h)
ions
s ai=−ik⋅v0i ai−ik⋅v,s v=−(νi+ik⋅v0i)v−ieMk δϕ,v0i=eE0Mνis\, a_i = -i\mathbf k\cdot\mathbf v_{0i}\, a_i - i\mathbf k\cdot\mathbf v, \qquad s\,\mathbf v = -(\nu_i + i\mathbf k\cdot\mathbf v_{0i})\mathbf v - i\frac{e}{M}\mathbf k\,\delta\phi, \qquad v_{0i} = \frac{e E_0}{M\nu_i}
poisson
ε0k2 δϕ=en0(ai−ae)\varepsilon_0 k^2\, \delta\phi = e n_0 (a_i - a_e)
Assumes
  • a uniform plasma in uniform E0x^E_0\hat x and BzB_z, constant TeT_e, the model's Hall tensor (its antisymmetric part drops out of k⋅R k\mathbf k\cdot R\,\mathbf k), cold ions with friction
  • δn=n0a eik⋅r+st\delta n = n_0 a\, e^{i\mathbf k\cdot\mathbf r + st}; Re s>0\mathrm{Re}\,s > 0 grows; the eigenvalues of the 4×44\times4 matrix