Skip to content
Projects

Verification

The tests in src/opencr/tests/reference/ and src/opencr/tests/integration/ check the model against limits that are known exactly and against published effective coefficients. Each criterion below is a test.

CheckCriterion
Detailed balance: radiation off, any TeT_e and nen_epopulations in Saha–Boltzmann equilibrium with H⁺ to 10−810^{-8}
Klein–Rosseland detailed balance with a tabulated EEDFBoltzmann populations to 0.5%
High density (ne=1026n_e = 10^{26} m⁻³, 1 eV)Saha–Boltzmann to 10−310^{-3} for every level
Low density (corona, 101010^{10} m⁻³)excitation from the ground state plus radiative cascades to 10−410^{-4}
Two-level atom, a three-state ionization chainanalytic populations and effective rates to 10−1210^{-12}
Maxwellian ratesplasmacoll’s numerical quadrature to 0.2%
Oscillator strengths, Einstein coefficientsNIST ASD (Wiese and Fuhr 2009) to 1%
Radiative recombination at 10410^4 K1s and case-A totals (Osterbrock and Ferland) to 5–6%
Closed steady stateselement totals to 10−1010^{-10}; non-negative populations over 0.20.2–200200 eV and 101410^{14}–102410^{24} m⁻³

The collisional-radiative ionization (SCRS_\mathrm{CR}) and recombination (αCR\alpha_\mathrm{CR}) coefficients of hydrogen/atomic/basic (nmax=20n_\mathrm{max} = 20) agree with ADAS (Summers et al. 1996, OPEN-ADAS scd12_h, acd12_h) within 25% for TeT_e = 2–100 eV and ne=1017n_e = 10^{17}–102110^{21} m⁻³, and within about 10% at ne≥1019n_e \ge 10^{19} m⁻³ and TeT_e = 2–30 eV. The largest differences, up to 35%, are in SCRS_\mathrm{CR} at 1 eV and low density, where ionization is dominated by the threshold region of the ground-state cross section, and in αCR\alpha_\mathrm{CR} at 1 eV and 102110^{21} m⁻³ (20%). Both are within the uncertainty of the cross sections.

OPEN-ADAS data may not be redistributed, so the test runs on your own download:

export OPENCR_ADAS_DIR=/path/to/folder # with scd12_h.dat and acd12_h.dat from open.adas.ac.uk
pytest src/opencr/tests/reference