# plasma_plots.theory.negative_ions

*module*

Negative hydrogen ions (H⁻): destruction processes, electronegative plasma and beam survival, in SI units.

Densities are in m⁻³, temperatures and energies in eV (k_B T / e), cross sections in m², rate
coefficients in m³/s, frequencies in 1/s and speeds in m/s, as in
[`parameters`][plasma_plots.theory.parameters], which this module reuses together with
[`sheaths`][plasma_plots.theory.sheaths] and [`beams`][plasma_plots.theory.beams].

> **Contents**
>
> * **Cross sections** (fits of Janev, Reiter and Samm): [`electron_detachment_cross_section()`][electron_detachment_cross_section]
>   (e + H⁻), [`mutual_neutralization_cross_section()`][mutual_neutralization_cross_section] (H⁺ + H⁻),
>   [`hydrogen_detachment_cross_section()`][hydrogen_detachment_cross_section] (H + H⁻) and
>   [`h2_detachment_cross_section()`][h2_detachment_cross_section] (H₂ + H⁻).
> * **Rates**: [`maxwellian_rate_coefficient()`][maxwellian_rate_coefficient] (any cross section averaged over Maxwellians),
>   [`electron_detachment_rate_coefficient()`][electron_detachment_rate_coefficient], [`mutual_neutralization_rate_coefficient()`][mutual_neutralization_rate_coefficient] and
>   the H⁻ loss frequencies of a plasma, [`destruction_frequencies()`][destruction_frequencies].
> * **Electronegative plasma**: [`debye_length_electronegative()`][debye_length_electronegative],
>   [`sheath_edge_electronegativity()`][sheath_edge_electronegativity], [`bohm_speed_electronegative()`][bohm_speed_electronegative] and
>   [`ion_flux_electronegative()`][ion_flux_electronegative].
> * **Beams and extraction**: [`beam_survival_fraction()`][beam_survival_fraction] (stripping on H₂ and H, with
>   [`neutral_beam_attenuation()`][plasma_plots.theory.beams.neutral_beam_attenuation]) and
>   [`surface_production_current()`][surface_production_current].

> **Conventions**
>
> * **Cross-section fits** are evaluated exactly as printed in the source, in the stated energy
>   variable (electron energy, relative collision energy, or laboratory energy of the H⁻). Outside the
>   stated fit range they are extrapolations: the module does not clip, check the ranges in each
>   docstring.
> * **Rates** are Maxwellian averages <σ v> of the fits. Species with different temperatures are
>   handled through the temperature of the relative motion, T_rel = (m_b T_a + m_a T_b) / (m_a + m_b).
> * **Electronegativity** is α = n₋ / n_e. Quasi-neutrality of the positive ions, n₊ = n_e (1 + α),
>   is assumed, and ions carry one elementary charge.
> * **Boltzmann negative ions**: the electron and H⁻ densities follow T_e ∇ln n_e = T₋ ∇ln n₋, so
>   γ = T_e / T₋ enters the Bohm speed. This fails at high pressure, where the H⁻ are collisional.

> **References**
>
> R. K. Janev, D. Reiter and U. Samm, Collision Processes in Low-Temperature Hydrogen Plasmas,
> Berichte des Forschungszentrums Jülich 4105 (2003), section 3 (H⁻ ions) and section 6.1 (H⁻ + H₂),
> https://eirene.de/Documentation/report_4105.pdf.
> 
> E. Kemaneci et al., A global model of cylindrical and coaxial surface-wave discharges,
> arXiv:1612.07268, eqs. (10) and (11).
> 
> N. St. J. Braithwaite and J. E. Allen, J. Phys. D 21, 1733 (1988).

**Examples**

The Maxwellian rate coefficients of the two main plasma losses of H⁻ at T_e = 1 eV, and the
fraction of a 50 keV H⁻ beam that survives 0.5 m of 0.01 Pa H₂ gas:

```pycon
>>> print(f"{electron_detachment_rate_coefficient(1.0):.3e} m^3/s")
1.472e-14 m^3/s
>>> print(f"{mutual_neutralization_rate_coefficient(1.0):.3e} m^3/s")
6.092e-14 m^3/s
>>> print(f"{beam_survival_fraction(50e3, h2_density=2.4e18, length=0.5):.4f}")
0.9450
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L1-L1)

## plasma_plots.theory.negative_ions.DETACHMENT_THRESHOLD

*attribute* · *module attribute*

```python
DETACHMENT_THRESHOLD = 0.754
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L76-L76)

## plasma_plots.theory.negative_ions.beam_survival_fraction

*function*

```python
def beam_survival_fraction(energy, h2_density=0.0, length=None, atom_density=0.0, positions=None, axis=-1)
```

Compute the fraction of an H⁻ beam that is not stripped by H₂ and H gas on its path.

The product of two [`neutral_beam_attenuation()`][plasma_plots.theory.beams.neutral_beam_attenuation]: the H₂ loss by
[`h2_detachment_cross_section()`][plasma_plots.theory.negative_ions.h2_detachment_cross_section] at the laboratory energy E of the beam and the H loss by
[`hydrogen_detachment_cross_section()`][plasma_plots.theory.negative_ions.hydrogen_detachment_cross_section] (both channels) at the relative energy E/2.

**Parameters**

- `energy` (`float or array_like`) — Laboratory energy of the H⁻, in eV.
- `h2_density` (`float or array_like`) (default: `0.0`) — H₂ density, in m⁻³. Default: ``0``.
- `length` (`float or array_like`) (default: `None`) — Path length in m for constant densities; or give ``positions`` instead.
- `atom_density` (`float or array_like`) (default: `0.0`) — H density, in m⁻³. Default: ``0``.
- `positions` (default: `None`) — See [`neutral_beam_attenuation()`][plasma_plots.theory.beams.neutral_beam_attenuation].
- `axis` (default: `None`) — See [`neutral_beam_attenuation()`][plasma_plots.theory.beams.neutral_beam_attenuation].

**Returns**

- (`float or numpy.ndarray`) — The surviving fraction of the beam. The H atom channel uses the 0.1 eV – 20 keV fit range, i.e. up to 40 keV beams.

> **References**
>
> Janev, Reiter and Samm, Jül-4105, eqs. (159) and (71); the attenuation law of
> [`neutral_beam_attenuation()`][plasma_plots.theory.beams.neutral_beam_attenuation].

**Examples**

50 keV, 0.5 m of H₂ at 2.4e18 m⁻³ (about 0.01 Pa):

```pycon
>>> print(f"{beam_survival_fraction(50e3, h2_density=2.4e18, length=0.5):.4f}")
0.9450
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L753-L806)

## plasma_plots.theory.negative_ions.bohm_speed_electronegative

*function*

```python
def bohm_speed_electronegative(electron_temperature, electronegativity, negative_ion_temperature, mass_number=1)
```

Compute the Bohm speed of an electronegative plasma, u_B = √(T_e (1 + α_s) / (m_i (1 + γ α_s))).

The Braithwaite–Allen criterion for cold positive ions and Boltzmann negative ions, with
α_s = n₋/n_e at the sheath edge and γ = T_e/T₋: the electropositive
[`bohm_speed()`][plasma_plots.theory.sheaths.bohm_speed] times √((1 + α_s)/(1 + γ α_s)). For γ > 1 the
ions need less than the electropositive speed. For γ > 5 + √24 ≈ 9.9 the sheath-edge
condition becomes multi-valued in the potential, and Braithwaite and Allen take the lower
branch (the speed here is the criterion at a given α_s, not that selection).

**Parameters**

- `electron_temperature` (`float or array_like`) — T_e, in eV.
- `electronegativity` (`float or array_like`) — α_s = n₋/n_e at the sheath edge (see [`sheath_edge_electronegativity()`][plasma_plots.theory.negative_ions.sheath_edge_electronegativity]).
- `negative_ion_temperature` (`float or array_like`) — T₋, in eV.
- `mass_number` (`float or array_like`) (default: `1`) — Positive-ion mass in proton masses. Default: ``1``.

**Returns**

- (`float or numpy.ndarray`) — u_B, in m/s. At α_s = 0 it is ``sheaths.bohm_speed(T_e)``.

> **References**
>
> Kemaneci et al., arXiv:1612.07268, eq. (11); Braithwaite and Allen, J. Phys. D 21, 1733 (1988);
> the threshold γ = 5 + √24 for the multi-valued solution is from J. E. Allen, 31st EPS
> Conference on Plasma Physics (2004), P-1.036. Paul et al., arXiv:2002.05445, give the same
> factor as (n₋ + n_e) T₋ / (n₋ T_e + n_e T₋).

**Examples**

5 eV electrons, α_s = 1 and H⁻ at 1 eV (γ = 5):

```pycon
>>> print(f"{bohm_speed_electronegative(5.0, 1.0, 1.0):.4g} m/s")
1.264e+04 m/s
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L656-L703)

## plasma_plots.theory.negative_ions.debye_length_electronegative

*function*

```python
def debye_length_electronegative(electron_density, electron_temperature, electronegativity, negative_ion_temperature, positive_ion_temperature=None)
```

Compute the Debye length of an electron–H⁻–H⁺ plasma, 1/λ_D² = Σ_s 1/λ_s².

Each Boltzmann species shields with its own length, λ_s² = ε₀ T_s / (n_s e²) (see
[`debye_length()`][plasma_plots.theory.parameters.debye_length]). With n₋ = α n_e and n₊ = (1 + α) n_e,

1/λ_D² = e² n_e / ε₀ · [1/T_e + α/T₋ + (1 + α)/T₊],

from linearising Poisson's equation for Boltzmann electrons, negative and positive ions. For
α → 0 and cold-ion shielding dropped (the default) λ_D is the electron Debye length.

**Parameters**

- `electron_density` (`float or array_like`) — n_e, in m⁻³.
- `electron_temperature` (`float or array_like`) — T_e, in eV.
- `electronegativity` (`float or array_like`) — α = n₋ / n_e.
- `negative_ion_temperature` (`float or array_like`) — T₋, in eV.
- `positive_ion_temperature` (`float or array_like`) (default: `None`) — T₊, in eV. Default: ``None``: the positive ions do not shield (hot ions), leaving the electrons and the H⁻. Pass T₊ to include them.

**Returns**

- (`float or numpy.ndarray`) — λ_D, in m. For T₊ = T₋ = T_e it is λ_e / √(2 + 2α).

> **References**
>
> Derived from the Boltzmann relations of Kemaneci et al., arXiv:1612.07268, eq. (10), and
> Poisson's equation; sum of inverse squared species lengths as in Chen, Introduction to Plasma
> Physics, section 1.2 (electrons only).

**Examples**

1e18 m⁻³ electrons at 1 eV, α = 10 and H⁻ at 0.5 eV, without positive-ion shielding:

```pycon
>>> print(f"{debye_length_electronegative(1e18, 1.0, 10.0, 0.5) * 1e6:.4f} um")
1.6222 um
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L548-L610)

## plasma_plots.theory.negative_ions.destruction_frequencies

*function*

```python
def destruction_frequencies(electron_density, electron_temperature, positive_ion_density=None, ion_temperature=1.0, atom_density=0.0, atom_temperature=0.1)
```

Compute the loss frequencies ν = n <σ v> of an H⁻ ion in a hydrogen plasma, per channel.

Channels: electron detachment (e + H⁻), mutual neutralization (H⁺ + H⁻) and the detachment of
H⁻ by H atoms (both the H + H + e and the H₂ + e channel of eq. 71 together). The loss by H₂
gas is not included: it needs the energy of a beam ([`h2_detachment_cross_section()`][plasma_plots.theory.negative_ions.h2_detachment_cross_section]).

**Parameters**

- `electron_density` (`float or array_like`) — n_e, in m⁻³.
- `electron_temperature` (`float or array_like`) — T_e, in eV.
- `positive_ion_density` (`float or array_like`) (default: `None`) — H⁺ density, in m⁻³. Default: ``electron_density`` (no H⁻ and no other ion).
- `ion_temperature` (`float or array_like`) (default: `1.0`) — Temperature of the H⁺ and the H⁻, in eV. Default: ``1``.
- `atom_density` (`float or array_like`) (default: `0.0`) — Density of H atoms, in m⁻³. Default: ``0``.
- `atom_temperature` (`float or array_like`) (default: `0.1`) — Temperature of the H atoms, in eV. Default: ``0.1``.

**Returns**

- (`dict of float or numpy.ndarray`) — ``{"electron detachment": ..., "mutual neutralization": ..., "atom detachment": ...}``, each ν in 1/s. The H⁻ lifetime is 1 over the sum.

> **References**
>
> Janev, Reiter and Samm, Jül-4105, eqs. (58), (63) and (71).

**Examples**

```pycon
>>> nu = destruction_frequencies(1e18, 1.0, atom_density=1e19)
>>> print({k: f"{float(v):.3g}" for k, v in nu.items()})
{'electron detachment': '1.47e+04', 'mutual neutralization': '6.09e+04', 'atom detachment': '2.42e+04'}
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L473-L542)

## plasma_plots.theory.negative_ions.electron_detachment_cross_section

*function*

```python
def electron_detachment_cross_section(energy)
```

Compute the cross section of electron-impact detachment, e + H⁻ → e + H + e.

The fit σ = 2.06/E · ln(e + 2.335e-4 E) · exp(−13.75/E^0.868) · [1 − (0.754/E)²] × 1e-13 cm²
of Janev et al., eq. (58), with E the electron energy in eV (the figure of the source covers
1 eV to 10 keV). Below the threshold of 0.754 eV, the binding energy of H⁻, the cross section
is zero.

**Parameters**

- `energy` (`float or array_like`) — Electron energy E, in eV.

**Returns**

- (`float or numpy.ndarray`) — σ, in m².

> **References**
>
> Janev, Reiter and Samm, Jül-4105, section 3.1.1, eq. (58).

**Examples**

The source quotes σ ≈ 2.3e-15 cm² at 65 eV:

```pycon
>>> print(f"{electron_detachment_cross_section(65.0) * 1e4:.3e} cm^2")
2.208e-15 cm^2
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L151-L191)

## plasma_plots.theory.negative_ions.electron_detachment_rate_coefficient

*function*

```python
def electron_detachment_rate_coefficient(electron_temperature, negative_ion_temperature=None)
```

Compute the rate coefficient of e + H⁻ → e + H + e for Maxwellian electrons.

<σ v> of [`electron_detachment_cross_section()`][plasma_plots.theory.negative_ions.electron_detachment_cross_section]: the relative energy is the electron
energy to within m_e/m_H⁻, so the H⁻ temperature hardly matters.

**Parameters**

- `electron_temperature` (`float or array_like`) — T_e, in eV.
- `negative_ion_temperature` (`float or array_like`) (default: `None`) — H⁻ temperature, in eV. Default: ``electron_temperature``.

**Returns**

- (`float or numpy.ndarray`) — <σ v>, in m³/s. The threshold is 0.754 eV, so the rate falls steeply below T_e ≈ 0.3 eV.

> **References**
>
> Maxwellian average of Janev et al., Jül-4105, eq. (58).

**Examples**

```pycon
>>> print(f"{electron_detachment_rate_coefficient(1.0):.3e} m^3/s")
1.472e-14 m^3/s
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L392-L427)

## plasma_plots.theory.negative_ions.h2_detachment_cross_section

*function*

```python
def h2_detachment_cross_section(energy)
```

Compute the cross section of H⁻ + H₂(v = 0) → H + H₂ + e, the stripping of an H⁻ beam on H₂.

The sum σ = σ< + σ> of Janev et al., eqs. (159a–c), with the laboratory energy E of the H⁻:
σ< = 81.10e-16 cm² / (E^0.63 [1 + 2.03e-6 E^1.95]) · {1 − exp[−0.057 (E/2.18 − 1)^0.94]} and
σ> = 1.22e3 e-16 cm² / (E^0.5 [1 + 6.91e-4 E^0.40]) · exp(−125.0/E^0.663). The source states
"E in keV" below eq. (159c), but the threshold 2.18 in (159b) is the 2.18 eV endothermicity it
quotes, and only E in eV reproduces its figure 34 and its stated maximum of about 1e-15 cm²
near 2 keV, so E is in eV here. The source fits measurements from threshold to the MeV range.
σ< is zero below the 2.18 eV threshold, where its printed form is undefined.

**Parameters**

- `energy` (`float or array_like`) — Laboratory energy of the H⁻, in eV.

**Returns**

- (`float or numpy.ndarray`) — σ, in m².

> **References**
>
> Janev, Reiter and Samm, Jül-4105, section 6.1.1, eqs. (159a–c) and figure 34.

**Examples**

The maximum of about 1.2e-15 cm² near 2 keV:

```pycon
>>> print(f"{h2_detachment_cross_section(2e3) * 1e4:.3e} cm^2")
1.207e-15 cm^2
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L267-L312)

## plasma_plots.theory.negative_ions.hydrogen_detachment_cross_section

*function*

```python
def hydrogen_detachment_cross_section(energy, channel='detachment')
```

Compute the cross section of H⁻ + H(1s) detachment, to H + H + e or to H₂ + e.

The polynomial fit ln σ = Σ_{j=0..8} a_j (ln E)^j of Janev et al., eq. (71), with the
coefficients of their table 11, valid for the relative collision energy 0.1 eV to 20 keV.

**Parameters**

- `energy` (`float or array_like`) — Relative collision energy E, in eV (the centre-of-mass energy).
- `channel` (`('detachment', 'associative')`) (default: `"detachment"`) — ``"detachment"``: H⁻ + H → H + H + e. ``"associative"``: H⁻ + H → H₂ + e. Default: ``"detachment"``.

**Returns**

- (`float or numpy.ndarray`) — σ, in m².

> **References**
>
> Janev, Reiter and Samm, Jül-4105, section 3.3.2, eq. (71) and table 11.

**Examples**

```pycon
>>> print(f"{hydrogen_detachment_cross_section(10.0) * 1e4:.4e} cm^2")
1.1947e-15 cm^2
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L232-L264)

## plasma_plots.theory.negative_ions.ion_flux_electronegative

*function*

```python
def ion_flux_electronegative(electron_density_edge, electronegativity, electron_temperature, negative_ion_temperature, mass_number=1)
```

Compute the positive-ion flux Γ₊ = n₊ u_B = (1 + α_s) n_e u_B at the sheath edge.

**Parameters**

- `electron_density_edge` (`float or array_like`) — Electron density at the sheath edge, in m⁻³.
- `electronegativity` (`float or array_like`) — α_s = n₋/n_e at the sheath edge.
- `electron_temperature` (`float or array_like`) — T_e, in eV.
- `negative_ion_temperature` (`float or array_like`) — T₋, in eV.
- `mass_number` (`float or array_like`) (default: `1`) — Positive-ion mass in proton masses. Default: ``1``.

**Returns**

- (`float or numpy.ndarray`) — Γ₊, in m⁻² s⁻¹; multiply by e for the current density. The edge density is an input: the presheath that relates it to the bulk is not modelled.

> **References**
>
> Kemaneci et al., arXiv:1612.07268, eq. (11) with the quasi-neutral n₊ = (1 + α_s) n_e.

**Examples**

```pycon
>>> print(f"{ion_flux_electronegative(1e17, 1.0, 5.0, 1.0):.4g} m^-2 s^-1")
2.527e+21 m^-2 s^-1
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L706-L747)

## plasma_plots.theory.negative_ions.maxwellian_rate_coefficient

*function*

```python
def maxwellian_rate_coefficient(cross_section, temperature, mass_a=electron_mass, mass_b=proton_mass, temperature_b=None, energy_range=None, points=2000)
```

Compute the rate coefficient <σ v> of a cross section σ(E) averaged over two Maxwellians.

With the relative motion Maxwellian at T_rel = (m_b T_a + m_a T_b)/(m_a + m_b) and the
reduced mass μ, <σ v> = √(8/(π μ)) T_rel^(−3/2) ∫ σ(E) E exp(−E/T_rel) dE (E and T in energy
units, E the relative energy ½ μ v²), integrated here with the trapezoidal rule on a
logarithmic energy grid.

**Parameters**

- `cross_section` (`callable`) — σ(E) in m², taking the relative energy E in eV as a numpy array.
- `temperature` (`float or array_like`) — Temperature T_a of the first species, in eV.
- `mass_a` (`float`) (default: `electron_mass`) — Masses in kg. Defaults: an electron and a proton (the reduced mass is m_e to within m_e/m_H⁻ for e + H⁻); pass two proton masses for H⁺ + H⁻.
- `mass_b` (`float`) (default: `electron_mass`) — Masses in kg. Defaults: an electron and a proton (the reduced mass is m_e to within m_e/m_H⁻ for e + H⁻); pass two proton masses for H⁺ + H⁻.
- `temperature_b` (`float or array_like`) (default: `None`) — Temperature of the second species, in eV. Default: ``temperature``.
- `energy_range` (`tuple of float`) (default: `None`) — Lowest and highest relative energy of the integral, in eV; the part of the Maxwellian outside is dropped. Default: 1e-4 to 60 times T_rel.
- `points` (`int`) (default: `2000`) — Number of grid points. Default: ``2000``.

**Returns**

- (`float or numpy.ndarray`) — <σ v>, in m³/s.

> **References**
>
> Standard Maxwellian average of a relative-motion cross section, e.g. Janev et al., Jül-4105
> (the cross sections themselves); the effective temperature of two Maxwellians is the one
> of their relative velocity distribution.

**Examples**

A constant σ = 1e-19 m² between electrons and protons at 1 eV:

```pycon
>>> print(
...     f"{maxwellian_rate_coefficient(lambda e: 1e-19 + 0 * e, 1.0):.4e} m^3/s"
... )
6.6942e-14 m^3/s
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L318-L389)

## plasma_plots.theory.negative_ions.mutual_neutralization_cross_section

*function*

```python
def mutual_neutralization_cross_section(energy, final_level=None)
```

Compute the cross section of mutual neutralization, H⁺ + H⁻ → H(n) + H(1s), n = 2, 3.

The polynomial fits ln σ = Σ_{j=0..8} a_j (ln E)^j of Janev et al., eq. (63), with the
coefficients of their table 10, in cm² and eV; the source gives them for the relative collision
energy 0.1 eV to 20 keV. The n = 1 and n ≥ 4 channels are not populated.

**Parameters**

- `energy` (`float or array_like`) — Relative collision energy E, in eV (the centre-of-mass energy).
- `final_level` (`(2, 3)`) (default: `2`) — Return only the capture into this level of the H atom. Default: the sum of both.

**Returns**

- (`float or numpy.ndarray`) — σ, in m².

> **References**
>
> Janev, Reiter and Samm, Jül-4105, section 3.2.1, eq. (63) and table 10.

**Examples**

```pycon
>>> print(f"{mutual_neutralization_cross_section(1.0) * 1e4:.4e} cm^2")
3.0329e-14 cm^2
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L194-L229)

## plasma_plots.theory.negative_ions.mutual_neutralization_rate_coefficient

*function*

```python
def mutual_neutralization_rate_coefficient(positive_ion_temperature, negative_ion_temperature=None, energy_range=(0.1, 20000.0))
```

Compute the thermal rate coefficient of H⁺ + H⁻ → H(n) + H for Maxwellian ions.

<σ v> of [`mutual_neutralization_cross_section()`][plasma_plots.theory.negative_ions.mutual_neutralization_cross_section], with the reduced mass m_p / 2 and the
relative temperature (T₊ + T₋)/2 (equal masses).

**Parameters**

- `positive_ion_temperature` (`float or array_like`) — H⁺ temperature, in eV.
- `negative_ion_temperature` (`float or array_like`) (default: `None`) — H⁻ temperature, in eV. Default: ``positive_ion_temperature``.
- `energy_range` (`tuple of float`) (default: `(0.1, 20000.0)`) — Relative energies of the integral, in eV. Default: ``(0.1, 2e4)``, the range of validity of the fit; the part of the Maxwellian below 0.1 eV is dropped, which underestimates the rate for T below about 0.3 eV.

**Returns**

- (`float or numpy.ndarray`) — <σ v>, in m³/s.

> **References**
>
> Maxwellian average of Janev et al., Jül-4105, eq. (63) and table 10.

**Examples**

```pycon
>>> print(f"{mutual_neutralization_rate_coefficient(1.0):.3e} m^3/s")
6.092e-14 m^3/s
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L430-L470)

## plasma_plots.theory.negative_ions.sheath_edge_electronegativity

*function*

```python
def sheath_edge_electronegativity(bulk_electronegativity, potential_drop, electron_temperature, negative_ion_temperature)
```

Compute α_s = n₋/n_e at the sheath edge for Boltzmann electrons and negative ions.

From T_e ∇ln n_e = T₋ ∇ln n₋ integrated through a presheath of potential drop V:
n_e = n_e0 exp(−V/T_e) and n₋ = n₋0 exp(−V/T₋), so α_s = α₀ exp[−V (1/T₋ − 1/T_e)]. For
T₋ < T_e the H⁻ are expelled faster than the electrons and α_s < α₀.

**Parameters**

- `bulk_electronegativity` (`float or array_like`) — α₀ = n₋/n_e in the bulk.
- `potential_drop` (`float or array_like`) — Potential drop V ≥ 0 from the bulk to the sheath edge, in V.
- `electron_temperature` (`float or array_like`) — T_e, in eV.
- `negative_ion_temperature` (`float or array_like`) — T₋, in eV.

**Returns**

- (`float or numpy.ndarray`) — α_s. It equals α₀ for T₋ = T_e or V = 0.

> **References**
>
> Kemaneci et al., arXiv:1612.07268, eq. (10) (the Boltzmann condition) integrated in φ.

**Examples**

```pycon
>>> print(f"{sheath_edge_electronegativity(5.0, 2.0, 2.0, 0.5):.4f}")
0.2489
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L613-L653)

## plasma_plots.theory.negative_ions.surface_production_current

*function*

```python
def surface_production_current(flux, yield_, survival=1.0, area=1.0)
```

Compute the extractable H⁻ current I = e Y Γ S A from a surface-production flux.

**Parameters**

- `flux` (`float or array_like`) — Flux Γ of the converting particles (H⁺, H atoms, or the sum weighted by their yields) onto the surface, in m⁻² s⁻¹.
- `yield_` (`float or array_like`) — H⁻ yield Y per incident particle.
- `survival` (`float or array_like`) (default: `1.0`) — Fraction S of the H⁻ that reaches the extraction aperture, e.g. from [`beam_survival_fraction()`][plasma_plots.theory.negative_ions.beam_survival_fraction]. Default: ``1``.
- `area` (`float or array_like`) (default: `1.0`) — Area A of the surface, in m². Default: ``1`` (a current density in A/m²).

**Returns**

- (`float or numpy.ndarray`) — I, in A.

**Examples**

A 1e22 m⁻² s⁻¹ atom flux with a 5 % yield and 70 % survival, on 1 cm²:

```pycon
>>> print(f"{surface_production_current(1e22, 0.05, 0.7, 1e-4) * 1e3:.4f} mA")
5.6076 mA
```

[View source](https://github.com/max-models/plasma-plots/blob/devel/src/plasma_plots/theory/negative_ions.py#L809-L843)
