Skip to content
Projects

Beam neutralizer

Download notebookView on GitHubRun when the site was built.

A fast beam of negative ions crosses a channel of gas. On the gas, and on the plasma it makes itself, it changes charge state (-, 0, +); in turn every charge change and every ionization of the gas feeds that plasma, which a global model of the channel balances. Neutralizer.solve iterates the two to a fixed point. The cross sections and rates of illustrative_deuterium_neutralizer are placeholders, not data: the numbers show what the model computes, not what a neutralizer achieves.

Two kinds of neutralizer share the model. ITER’s injectors use a gas neutralizer: the plasma the beam makes is not confined (cusp=None, the default of Neutralizer), its stripping is negligible and the neutral fraction stays at the gas limit, 55-60 % for 1 MeV D−^-. The beam-driven plasma neutralizer, a concept studied for DEMO, confines that plasma with magnetic cusps on the side walls so that it strips the beam too. illustrative_deuterium_neutralizer has cusps, so this page shows the second kind.

import warnings
import plasma_plots
from carafe.neutralizer import illustrative_deuterium_neutralizer
warnings.simplefilter("ignore", UserWarning) # the placeholder-data warning
channel = illustrative_deuterium_neutralizer(points=51)
channel.beam, channel.length, channel.gas_inflow
(FastBeam(energy=1000000.0, current=10.0, mass=3.344325680132399e-27, initial={'-': 1.0}),
3.0,
2e+21)
result = channel.solve()
result.converged, result.iterations, result.neutral_fraction
(True, 12, 0.4164920600009379)

The result is a dataset: the charge-state fractions along the channel, and the channel’s plasma with every term of its balances.

data = result.to_dataset()
data[["neutral_fraction", "line_density", "electron_temperature", "plasma_potential"]]
<xarray.Dataset> Size: 32B
Dimensions:               ()
Data variables:
    neutral_fraction      float64 8B 0.4165
    line_density          float64 8B 5.218e+19
    electron_temperature  float64 8B 3.122
    plasma_potential      float64 8B 11.77
with plasma_plots.figure(1, 2, figsize=(10, 3.6)) as fig:
data.fraction.plasma.plot.profiles(x="position", over="state", ax=fig[0])
power = data.electron_power.where(abs(data.electron_power) > 1.0, drop=True)
fig[1].barh(power.channel.values, power.values) # W, a channel per bar
fig[1].set(xlabel="electron power [W]", title="electron power balance")
Notebook output

The beam’s processes reach the plasma as VolumeSources per unit target density, so a model treats them with its own gas and electron densities: a global model with the mean beam flux and fractions, a Fluid1D with profiles across the channel.

sources = channel.beam_sources(channel.mean_flux, result.fractions.mean(axis=0))
[(s.name, s.changes, s.per, s.electron_energy) for s in sources]
[('beam -->0 on gas', {'e': 1}, ('D2',), 272.38327162979436),
('beam -->0 on gas (D)', {'e': 1}, ('D',), 272.38327162979436),
('beam -->+ on gas', {'e': 2}, ('D2',), 544.7665432595887),
('beam -->+ on gas (D)', {'e': 2}, ('D',), 544.7665432595887),
('beam 0->+ on gas', {'e': 1}, ('D2',), 272.38327162979436),
('beam 0->+ on gas (D)', {'e': 1}, ('D',), 272.38327162979436),
('beam -->0 on plasma', {'e': 1}, ('e',), 272.38327162979436),
('beam -->+ on plasma', {'e': 2}, ('e',), 544.7665432595887),
('beam 0->+ on plasma', {'e': 1}, ('e',), 272.38327162979436),
('gas ionization by -', {'D2': -1, 'D2+': 1, 'e': 1}, ('D2',), 10.0),
('gas ionization by - (D)', {'D': -1, 'D+': 1, 'e': 1}, ('D',), 10.0),
('gas ionization by 0', {'D2': -1, 'D2+': 1, 'e': 1}, ('D2',), 10.0),
('gas ionization by 0 (D)', {'D': -1, 'D+': 1, 'e': 1}, ('D',), 10.0),
('gas ionization by +', {'D2': -1, 'D2+': 1, 'e': 1}, ('D2',), 10.0),
('gas ionization by + (D)', {'D': -1, 'D+': 1, 'e': 1}, ('D',), 10.0)]

The global model mixes the plasma completely. The opposite limit, a plasma that does not move along the channel, balances every axial slice in its own gas and beam:

local = channel.local_plasma(result, points=11)
with plasma_plots.figure(1, 2, figsize=(10, 3.6)) as fig:
local.density.sel(species=["e", "D2+", "D+"]).plasma.plot.profiles(
x="position", over="species", ax=fig[0]
)
local.electron_temperature.plasma.plot.lineout(ax=fig[1])
Notebook output

A scan of the gas flow, with and without the magnetic cusps, is the neutralizer scan example; carafe.cr.deuterium_neutralizer is the same channel with OpenCR’s plasma rates.