Skip to content
Projects

Local dispersion

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

KineticIons

classsource

Maxwellian unmagnetised ions: mass (kg), temperature (eV), flow (v_0x, v_0y).

response
δnin0=−e δϕTi[1+ζZ(ζ)],ζ=ω−k⋅v02 kvti,vti=eTiM\frac{\delta n_i}{n_0} = -\frac{e\,\delta\phi}{T_i}\big[1 + \zeta Z(\zeta)\big], \qquad \zeta = \frac{\omega - \mathbf k\cdot\mathbf v_0}{\sqrt2\, k v_{ti}}, \qquad v_{ti} = \sqrt{\frac{e T_i}{M}}
Assumes
  • Maxwellian unmagnetised ions: Landau resonance and the Doppler shift of the flow; no collisions, no gradient convection, no source
Built from

LocalDispersion

classsource

The local dispersion relation: plasma and electrons, ions, the closure.

electron momentum
me(−iω~+ν) δv+me v0′ δvx y^=iek δϕ−e δv×B−ikTeae,ω~=ω−k⋅v0m_e(-i\tilde\omega + \nu)\,\delta\mathbf v + m_e\, v_0'\,\delta v_x\,\hat y = i e\mathbf k\,\delta\phi - e\,\delta\mathbf v\times\mathbf B - i\mathbf k T_e a_e, \qquad \tilde\omega = \omega - \mathbf k\cdot\mathbf v_0
electron continuity
(−iω−νiz) ae+(ikx+1Ln)δvx+∂ δvx∂BBLB+∂ δvx∂E0E0LE+iky δvy+(v0 convection)=0(-i\omega - \nu_\mathrm{iz})\, a_e + \left(i k_x + \frac{1}{L_n}\right)\delta v_x + \frac{\partial\,\delta v_x}{\partial B}\frac{B}{L_B} + \frac{\partial\,\delta v_x}{\partial E_0}\frac{E_0}{L_E} + i k_y\,\delta v_y + (\mathbf v_0\text{ convection}) = 0
cold ions
δnin0=ik⋅δvi+δvix/Ln−νizaei(ω−k⋅v0i),δvi=eMk δϕω−k⋅v0i+iνi\frac{\delta n_i}{n_0} = \frac{i\mathbf k\cdot\delta\mathbf v_i + \delta v_{ix}/L_n - \nu_\mathrm{iz} a_e}{i(\omega - \mathbf k\cdot\mathbf v_{0i})}, \qquad \delta\mathbf v_i = \frac{e}{M}\frac{\mathbf k\,\delta\phi}{\omega - \mathbf k\cdot\mathbf v_{0i} + i\nu_i}
closure
k2λD2 e δϕTe=ai−ae (Poisson)orai=aek^2\lambda_D^2\,\frac{e\,\delta\phi}{T_e} = a_i - a_e \ (\text{Poisson}) \quad \text{or} \quad a_i = a_e
roots
minima of ∣residual∣ on a grid in ω, then Newton;drift ordering: ∣Re ω∣<0.3kyvE, ∣Im ω∣<0.02 ωce\text{minima of } |\text{residual}| \text{ on a grid in } \omega, \text{ then Newton}; \quad \text{drift ordering: } |\mathrm{Re}\,\omega| < 0.3 k_y v_E,\ |\mathrm{Im}\,\omega| < 0.02\,\omega_{ce}
Assumes
  • local (WKB) perturbations ei(kxx+kyy)−iωte^{i(k_x x + k_y y) - i\omega t}; signed gradient lengths L=f/f′L = f/f'
  • the compressibility of every drift in the model field B(x)z^B(x)\hat z by differentiation in BB and E0E_0; curl_free_field adds the vacuum field's second −vx/LB-v_x/L_B
  • roots dropped beyond ∣ω−k⋅v0e∣>0.7 ωce|\omega - \mathbf k\cdot\mathbf v_{0e}| > 0.7\,\omega_{ce} or ∣Im ω∣>0.1 ωce|\mathrm{Im}\,\omega| > 0.1\,\omega_{ce}
References
Built from

plasma_dispersion_function

functionsource

Z(zeta) = i sqrt(pi) w(zeta), the plasma dispersion function, on the whole plane.

dispersion function
Z(ζ)=iπ w(ζ)=iπ e−ζ2 erfc(−iζ)Z(\zeta) = i\sqrt\pi\, w(\zeta) = i\sqrt\pi\, e^{-\zeta^2}\,\mathrm{erfc}(-i\zeta)
real axis
Re Z(x)=−π e−x2 erfi(x)(x real)\mathrm{Re}\,Z(x) = -\sqrt\pi\, e^{-x^2}\,\mathrm{erfi}(x) \quad (x \text{ real})
asymptotic
Z(ζ)≈−1ζ(1+12ζ2+34ζ4)(∣ζ∣>30)Z(\zeta) \approx -\frac{1}{\zeta}\left(1 + \frac{1}{2\zeta^2} + \frac{3}{4\zeta^4}\right) \quad (|\zeta| > 30)
Assumes
  • scipy.special.wofz, the analytic continuation to Im ζ<0\mathrm{Im}\,\zeta < 0; the asymptotic series drops the e−ζ2e^{-\zeta^2} term of the lower half-plane