The CR model
This page fixes the physics every OpenCR model shares: the equations, which densities are inputs and which are unknowns, how a steady state is closed, and the units. The API follows from it.
Population equations
Section titled “Population equations”A model is a set of states (levels, ions, molecules) and reactions . Reaction has reactant multiplicities , net stoichiometry (products minus reactants) and a rate coefficient , so its rate per volume is
where counts the electrons among the reactants. The populations obey
depends on the plasma conditions : the electron temperature or energy distribution, the ion and gas temperatures, the escape factors of the lines. The electron is never a state: is either given or follows from quasi-neutrality, .
Reactions are elementary: each has its own data and provenance. Effective rates (such as the collisional-radiative ionization coefficient) are derived from them by eliminating states (below); OpenCR never mixes the two in one network.
Inputs and unknowns
Section titled “Inputs and unknowns”A solve splits the states into
- prescribed states, whose densities are inputs (
Conditions.densities): the drivers of a quasi-static solve (for atomic hydrogen the ground state and the proton) and fixed backgrounds (H₂ in an atomic model); - evolving states, the unknowns.
(or the energy distribution), or quasi-neutrality, , and the
escape factors are always inputs. OpenCR does not solve an energy equation, and it does not
compute the energy distribution; plasmacoll’s Boltzmann solver can (EEDF.from_boltzmann).
The solves
Section titled “The solves”Quasi-static (CR) solve — Model.solve_steady_state(conditions), the default.
The excited states relax much faster than the drivers change (the usual CR assumption:
and electron-collision times of ns against µs–ms for transport and ionization), so they
are in steady state for given driver densities. With the drivers and the rest, and
all reactions linear in the evolving states,
Each excited population is a sum of contributions from the drivers (for hydrogen an excitation part and a recombination part ). Eliminating leaves the effective rate matrix of the drivers,
whose off-diagonal entries divided by are the effective (collisional-radiative) coefficients: ionization from to , recombination back. Line emission is split the same way into photon emissivity coefficients per driver. This is the generalised CR picture of ADAS (Summers et al. 2006).
Closed steady state — Model.solve_steady_state(conditions, mode="full"). Every
state evolves. The equations are then singular: for each conserved
element ( atoms of in state ). One equation per conserved element is replaced
by its total, , given in Conditions.totals. Without a total for a
conserved element the system is underdetermined and the solve stops with an error that says
which total is missing. The result is the ionization balance at the given (or
self-consistently with quasi-neutrality, which makes the system nonlinear).
Time-dependent — Model.solve_transient(conditions, initial, times). Every evolving
state follows its equation from initial densities; the prescribed states stay prescribed
(constant, or following conditions(t) when a function of time is given). The system is stiff
(rates from to ), so the integrators are implicit (BDF by
default, or Radau) with the analytic sparse Jacobian. The report gives the drift of every element
total the evolving states conserve; is given or quasi-neutral at every moment, as in the
steady solves. Any output time can be read like a steady state (history.at(index)): fluxes,
dominant processes and emission at that moment, and the residual that says how far from steady
state the populations are.
Nonlinear reactions (two evolving reactants, such as H⁺ + H⁻ mutual neutralization, or from quasi-neutrality) are allowed in the closed solve; the quasi-static solve needs the excited states to enter linearly and says so otherwise.
Normalisation and output
Section titled “Normalisation and output”Populations are absolute densities in m⁻³. A quasi-static result also gives the reduced populations per driver (the population coefficients, in m³), and a closed steady state the fractions .
Boundary conditions and what is left out
Section titled “Boundary conditions and what is left out”A model is zero-dimensional. Transport enters only as explicit reactions: a loss
wall_loss with a given rate (for example with a confinement time), or a
pumping source. Nothing is added behind the user’s back. Radiation is optically thin
unless escape factors are set (below).
The atomic hydrogen model resolves the principal quantum number only (the sub-states statistically populated, which needs fast -mixing), truncates at a highest level without continuum lowering, and omits heavy-particle collisions with the excited states; its manifest lists every assumption.
Radiation trapping
Section titled “Radiation trapping”An optically thick line is re-absorbed before it leaves the plasma, so only a fraction of its spontaneous emission escapes: the model uses in place of (and the emissivities follow). OpenCR applies escape factors in two explicit ways, and never otherwise:
-
Conditions.escape: a factor per line, given by the user (for example from a radiation transport calculation); -
Conditions.trapping = RadiationTrapping(length, model): the factors are computed from the line-centre optical depth of each Doppler-broadened line over the absorption length ,with the approximation
model:"mewe"(default), (Mewe 1967), or Holstein’s asymptotic forms for a slab or a cylinder ("holstein-slab","holstein-cylinder"). The factors depend on the lower populations, which depend on the factors, so the solve iterates to self-consistency; the result’sconditions.escapeholds the final factors and its report the iterations. Factors given inConditions.escapeoverride the computed ones line by line.
is the distance the photons travel to the wall (a slab’s half-thickness, a cylinder’s
radius), a parameter of this zero-dimensional approximation and not something OpenCR can
know. The formulas are in opencr.kinetics.radiation.
SI throughout, except temperatures (as ) and energies, in eV. Densities in m⁻³, rate
coefficients in s⁻¹ (one reactant), m³/s (two) and m⁶/s (three), wavelengths in nm in vacuum
(air_wavelength converts above 200 nm).