Overview
OpenCR is a zero-dimensional collisional-radiative (CR) model of a low-temperature plasma: the populations of explicit states (atomic levels, ions, molecular levels) coupled by elementary reactions with traceable data. From them come the quasi-static populations of the excited states for given driver densities, the effective ionization, recombination and photon emissivity coefficients, closed steady states, the time evolution and the line emission. The electron temperature or energy distribution, the electron density (or quasi-neutrality), the heavy-particle temperatures and the escape factors are inputs: no energy equation and no transport are solved.
Each equation on these pages is declared on the code that implements it, as a method card, and
checked by the tests: 23 closed forms against SymPy rules, four discretisations against their
order of convergence. The pages of the section list the cards module by module; this one shows
how they fit together, for the predefined atomic hydrogen model (hydrogen/atomic/basic).
The pipeline
Section titled “The pipeline”- Population equations. Reaction proceeds at (mass action), and every state changes by . The electron is never a state: is given or quasi-neutral. The Jacobian is analytic and sparse; the conserved quantities are the elements.
- Rate models say how each is given: a cross section, Arrhenius, a table, a constant (Einstein ), a Python function, or the detailed-balance inverse of another reaction.
- Rate coefficients. A piecewise-linear cross section is averaged over a Maxwellian in closed form, segment by segment, with the threshold taken out so that the inverses never overflow. De-excitation and three-body recombination follow by Boltzmann and Saha, or by the Klein-Rosseland cross section for any electron energy distribution:
coefficients
functionsourceReturn k_r in SI for every reaction at conditions.
- scaled
- inverse
- boltzmann
- saha
- escape
- Assumes
depends_onpicks the temperature: ( for a non-Maxwellian EEDF), (the gas temperature when not given), , or none- with a non-Maxwellian EEDF only the electron cross sections (and their Klein-Rosseland inverses) are integrated over it (
plasmacoll.eedf_rate_coefficient) - the escape factor is
Conditions.escapeby name, else the reaction's ownescape
- References
- Built from
- Quasi-static reduction. With the drivers (H(n=1) and H) prescribed, the excited states follow them instantly; eliminating them gives the population coefficients and the effective (CR) rate coefficients and :
quasi_static
functionsourceReturn the quasi-static reduction with the drivers conditions.densities.
- matrix
- reduction
- effective
- solve
- Assumes
- drivers : the states with a density in the conditions; the rest
- every reaction linear in its one quasi-static reactant (two are refused); a reaction among drivers only goes on the column of its first heavy reactant
- a given (a quasi-neutral one is refused)
- sparse LU (
splu) with one step of iterative refinement; a zero diagonal of (a state without losses) or a singular factorisation raisesSingularSystemError
- References
- Built from
- Steady states solve : a sparse LU solve for a linear system, one row per conserved element replaced by its total for a closed one, Brent’s method in for quasi-neutrality, and pseudo-transient continuation for the rest, judged by the relative residual. Time integration uses SciPy’s stiff integrators with the analytic Jacobian.
- Radiation trapping. An optically thick line is reabsorbed: its is multiplied by an escape factor of the line-centre optical depth of a Doppler-broadened line, iterated with the populations to self-consistency.
- Emission: the lines, their photon emissivity coefficients per driver, Doppler and instrumental widths, the electron cooling coefficient.
The atomic hydrogen model puts the hydrogen data together: levels resolved in , the Janev-Reiter-Samm and Johnson cross sections (from plasmacoll), Vriens-Smeets rates above , Johnson’s Einstein coefficients and the radiative recombination fits. Around the model: the sensitivities to the rate data and the propagation of their uncertainties, the effective-rate tables other codes interpolate, and the batched and JAX reductions of many conditions at once.
Units and conventions
Section titled “Units and conventions”SI units, except energies and temperatures () in eV; densities in m, a rate
coefficient of a reaction with reactants in m/s, wavelengths in nm in vacuum
(in air above 200 nm on request). The constants are CODATA 2018
through scipy.constants, and eV from the NIST ASD. The hydrogen cross
sections keep the report’s 13.6 eV thresholds while the states use : the 0.01% difference
enters the detailed-balance exponents.
Not in the model
Section titled “Not in the model”- No energy equation, no EEDF calculation, no transport beyond explicit wall-loss and pumping reactions: zero-dimensional.
- Atomic hydrogen: sub-states statistically populated (overestimates 2s at low density); no levels above , no continuum lowering; electron collisions only (no proton or atom impact, no -mixing); no two-photon decay of 2s, fine structure or Lamb shift; Kramers recombination without Gaunt factor for ; Vriens-Smeets rates Maxwellian only.
- Radiation: optically thin unless escape factors are given or computed; trapping is an escape-factor approximation over a user length, without stimulated emission, redistribution or continuum opacity; spectra are Gaussian lines only.
- Detailed balance for inverses with different numbers of heavy particles (dissociation, attachment), or Saha inverses of non-electron rates.
- The reduction, the batched and the JAX paths need one heavy reactant per reaction and a given .
Verification
Section titled “Verification”Besides the checks of the cards, the tests compare a closed steady state without radiation with Saha-Boltzmann to , the Maxwellian closed form with plasmacoll’s quadrature to 0.2%, the corona limit, the two-level reduction and the Jacobian with finite differences, the Einstein coefficients with NIST and the radiative recombination with Osterbrock and Ferland, and and with OPEN-ADAS when its files are available; see the verification guide.