Spoke model
DriftFluid2D is a drift fluid in the plane of a magnetron discharge: x from the
cathode to the anode across the magnetic field, y azimuthal and periodic. Electrons drift
in and diffuse, ions are unmagnetised, Poisson’s equation closes the
potential. Azimuthal structures (spokes) grow from it; spoke_report describes a run in the
terms of the experiments. Here the smallest check: in a uniform plasma, periodic in x
and y, a small azimuthal perturbation grows at the rate of the local dispersion
relation. The rates are synthetic.
import numpy as npimport plasma_plotsfrom plasmacoll.constants import ELEMENTARY_CHARGE as e
from carafe import DriftFluid2D, spoke_reportfrom carafe.driftfluid2d import uniform_plasma_roots
density, e_field, b_field, te = 1e16, -2200.0, 0.02, 5.0 # m^-3, V/m, T, eVgas, nu_e, nu_i = 1.43e20, 2e7, 1e6 # m^-3, 1/s, 1/splasma = DriftFluid2D( 0.0048, # x: 4.8 mm 0.016, # y: 16 mm, the azimuthal period 4, 32, voltage=0.0, magnetic_field=b_field, gas_density=gas, electron_temperature=te, momentum_rate=nu_e / gas, ion_friction_rate=nu_i / gas, ionization_rate=lambda t: 0.0 * t, refill_rate=0.0, secondary_emission=0.0, ion_temperature=1e-4, field_bc=e_field, # a uniform axial field instead of the electrodes periodic_x=True,)The ions start at their drift velocity in the field, the stationary sources hold the
uniform state, and mode m = 1 gets a perturbation of 1e-4:
start = plasma.initial_state(density, electron_temperature=te)start.ion_velocity[0] = e * e_field / (plasma.ion_mass * nu_i)start = plasma.step(start, 1e-13)plasma.stationary_sources(start)k = 2 * np.pi / plasma.length_ywave = 1.0 + 1e-4 * np.cos(k * plasma.y)[None, :]start.electron_density = start.electron_density * wavestart.ion_density = start.ion_density * wave
roots = uniform_plasma_roots( 0.0, k, density, e_field, b_field, te, plasma.ion_mass, nu_i, nu_e)theory = roots[np.argmax(roots.real)]theory # gamma - i omega (1/s)np.complex128(5718181.224119289-12987649.746115178j)t_end = 3.0 / theory.realrun = plasma.run(start, t_end, record_every=t_end / 120)run.steps360The run records the electron density along y at a probe (mid-gap) and its azimuthal
Fourier amplitudes:
record = run.to_dataset()record = record.assign_coords(time=record.time * 1e6, y=record.y * 1e3)record.time.attrs.update(long_name="t", units="µs")record.y.attrs.update(long_name="y (azimuthal)", units="mm")with plasma_plots.figure(1, 2, figsize=(11, 3.8)) as fig: record.probe.plasma.plot.slice(x="y", y="time", ax=fig[0]) record.mode_amplitude.sel(mode=[1, 2]).plasma.plot.profiles( x="time", over="mode", logy=True, ax=fig[1] )
The spoke report
Section titled “The spoke report”spoke_report takes the dominant mode over a window (the last half of the run by default)
and gives its growth rate, phase velocity, direction against , and the
modulation and potential hump it makes:
report = spoke_report(run, (0.45 * t_end, t_end))reportSpokeReport(mode=1, wavelength=0.016, growth_rate=5669815.047611038, phase_velocity=33191.10187096786, exb_velocity=110000.00000000012, relative_direction=1, speed_ratio=0.30173728973607117, cathode_modulation=0.0004656913934349257, potential_hump=0.3261220233133176, azimuthal_field=127.28212531335645, window=(np.float64(2.360890547339948e-07), np.float64(5.246423438533217e-07)))print(f"growth rate {report.growth_rate:.3e} /s, theory {theory.real:.3e} /s")print( f"frequency {report.phase_velocity * k:.3e} rad/s, theory {-theory.imag:.3e} rad/s")growth rate 5.670e+06 /s, theory 5.718e+06 /sfrequency 1.303e+07 rad/s, theory 1.299e+07 rad/sThe mode moves along (relative_direction = 1) at a fraction of the drift
speed. The full magnetron, with electrodes, an exponential field and ionization
(exponential_field, the argon_*_rate placeholders), uses the same run and
spoke_report; the drift fluid verification
example has the other checks.