# opencr.models.hydrogen_atomic

*module*

Atomic hydrogen resolved in the principal quantum number.

``hydrogen/atomic/basic``: the levels H(n=1..n_max) and the proton, with

* electron-impact excitation ``n -> m`` and ionization of every level (Janev,
  Reiter and Samm 2003, section 2.1, and Johnson 1972, through
  `plasmacoll.atomic_hydrogen`);
* spontaneous emission ``m -> n`` (Johnson's oscillator strengths);
* electron-impact de-excitation and three-body recombination by detailed
  balance, and radiative recombination (Janev, Reiter and Samm, eqs. 21-22),
  each of which can be switched off.

Above n = 24, where Johnson's excitation formula fails, the excitations
involving a level ``n > 24`` use the Maxwellian rate coefficients of Vriens
and Smeets (1980) (`plasmacoll.atomic_hydrogen.vriens_smeets_excitation_rate`),
so ``n_max`` can reach `MAX_LEVEL`.

The drivers of the quasi-static solve are H(n=1) and H+.

[View source](https://github.com/max-models/OpenCR/blob/devel/src/opencr/models/hydrogen_atomic.py#L1-L1)

## opencr.models.hydrogen_atomic.ASSUMPTIONS

*attribute* · *module attribute*

```python
ASSUMPTIONS = ('States resolved in the principal quantum number n only; the l sub-states are statistically populated (fast l-mixing), which overestimates the 2s population at low density.', 'Levels above n_max are omitted (no continuum lowering, no extrapolation to n -> infinity); effective recombination at low density depends on n_max.', 'Electron collisions only: heavy-particle (proton, atom) excitation, ionization and l-mixing of the excited states are omitted.', 'Two-photon decay of 2s and fine structure are omitted.', 'Optically thin unless escape factors are given in the conditions.', 'De-excitation and three-body recombination follow from excitation and ionization by detailed balance (Klein-Rosseland for de-excitation with any EEDF; Saha at the electron temperature, the effective one for a non-Maxwellian EEDF, for three-body recombination).', 'Cross sections from Janev, Reiter and Samm (2003) section 2.1 and Johnson (1972): 10-20% from the ground state, 20-50% near threshold between excited states.', "Excitations involving a level above n = 24 use the Maxwellian rate coefficients of Vriens and Smeets (1980) (about 20%; up to a factor 2 below Johnson's near threshold), evaluated at the effective temperature for a non-Maxwellian EEDF.")
```

[View source](https://github.com/max-models/OpenCR/blob/devel/src/opencr/models/hydrogen_atomic.py#L57-L76)

## opencr.models.hydrogen_atomic.MAX_LEVEL

*attribute* · *module attribute*

```python
MAX_LEVEL = 60
```

[View source](https://github.com/max-models/OpenCR/blob/devel/src/opencr/models/hydrogen_atomic.py#L54-L54)

## opencr.models.hydrogen_atomic.atomic_hydrogen_network

*function*

```python
def atomic_hydrogen_network(n_max: int = 20, isotope: str = 'H', deexcitation: bool = True, three_body_recombination: bool = True, radiative_recombination_: bool = True, max_energy: float = 10000.0) -> ReactionNetwork
```

Return the network of ``hydrogen/atomic/basic``.

**Parameters**

- `n_max` (`int`) (default: `20`) — The highest principal quantum number, at most `MAX_LEVEL`; above 24 the Vriens-Smeets rates take over from Johnson's formula.
- `isotope` (`str`) (default: `'H'`) — ``"H"`` or ``"D"`` (the same data; the species are renamed).
- `deexcitation` (`bool`) (default: `True`) — Include electron-impact de-excitation.
- `three_body_recombination` (`bool`) (default: `True`) — Include three-body recombination.
- `radiative_recombination_` (`bool`) (default: `True`) — Include radiative recombination.
- `max_energy` (`float`) (default: `10000.0`) — The last tabulated cross-section energy in eV, or a quantity such as ``"10 keV"``.

**Numerics**

*excitation*

$$
e + \mathrm{H}(n) \to e + \mathrm{H}(m): \ \text{Janev-Reiter-Samm eqs. (4), (5); Johnson for } m \le 24; \ \text{Vriens-Smeets rate above}
$$

*deexcitation*

$$
e + \mathrm{H}(m) \to e + \mathrm{H}(n): \ \text{detailed balance of the excitation}
$$

*emission*

$$
\mathrm{H}(m) \to \mathrm{H}(n) + h\nu: \ A_{mn}
$$

*ionization*

$$
e + \mathrm{H}(n) \to 2e + \mathrm{H}^+: \ \text{Janev-Reiter-Samm eq. (14) for } n \le 3, \ \text{Johnson above}
$$

*recombination*

$$
2e + \mathrm{H}^+ \to e + \mathrm{H}(n): \ \text{Saha inverse of the ionization}; \qquad e + \mathrm{H}^+ \to \mathrm{H}(n) + h\nu: \ \alpha_n
$$

*count*

$$
N_{\mathrm{reactions}} = \tfrac32\, n_{\max}(n_{\max} - 1) + 3 n_{\max}
$$

Assumptions:

- $2 \le n_{\max} \le 60$; drivers H(n=1) and H$^+$
- $n$-bundled levels with statistically populated $l$ sub-states (overestimates 2s at low density); no levels above $n_{\max}$, no continuum lowering
- electron collisions only (no proton or atom impact, no $l$-mixing); no two-photon decay of 2s
- cross sections tabulated by plasmacoll to 10$^4$ eV and held above; Vriens-Smeets rates are Maxwellian only (evaluated at $T_{\mathrm{eff}}$ for another EEDF)
- `deexcitation`, `three_body_recombination` and `radiative_recombination_` switch their processes off

References:

- [Janev, Reiter and Samm, Jül-4105 (2003)](https://eirene.de/Documentation/report_4105.pdf), sect. 2.1
- [Johnson, Astrophys. J. 174, 227 (1972)](https://doi.org/10.1086/151486)
- [Vriens and Smeets, Phys. Rev. A 22, 940 (1980)](https://doi.org/10.1103/PhysRevA.22.940), eq. (17)
- [NIST Atomic Spectra Database](https://physics.nist.gov/asd)

Built from:

- `opencr.data.hydrogen.hydrogen_levels`
- `opencr.data.hydrogen.einstein_a`
- `opencr.data.hydrogen.radiative_recombination`
- `opencr.core.rates.CrossSectionRate`
- `opencr.core.rates.DetailedBalance`
- `opencr.core.rates.Function`

[View source](https://github.com/max-models/OpenCR/blob/devel/src/opencr/models/hydrogen_atomic.py#L99-L252)
