Skip to content
Projects

Quasi-static reduction

The equations of opencr.kinetics.effective, declared on the code that implements them and checked by the tests.

quasi_static

functionsource

Return the quasi-static reduction with the drivers conditions.densities.

matrix
Mij=∑r: j is the quasi-static reactant of rνir kr neare∏p∈P, p≠jnparpM_{ij} = \sum_{r:\ j \text{ is the quasi-static reactant of } r} \nu_{ir}\, k_r\, n_e^{a_{re}} \prod_{p \in P,\, p \ne j} n_p^{a_{rp}}
reduction
dnQdt=MQQnQ+MQPnP=0⇒nQ=C nP,C=−MQQ−1MQP\frac{d\mathbf n_Q}{dt} = M_{QQ}\mathbf n_Q + M_{QP}\mathbf n_P = 0 \quad\Rightarrow\quad \mathbf n_Q = C\,\mathbf n_P, \qquad C = -M_{QQ}^{-1} M_{QP}
effective
dnPdt=MeffnP,Meff=MPP+MPQC\frac{d\mathbf n_P}{dt} = M^{\mathrm{eff}} \mathbf n_P, \qquad M^{\mathrm{eff}} = M_{PP} + M_{PQ} C
solve
MQQ=LU,X0=U−1L−1MQP,X=X0+U−1L−1(MQP−MQQX0)M_{QQ} = LU, \qquad X_0 = U^{-1}L^{-1} M_{QP}, \qquad X = X_0 + U^{-1}L^{-1}\left(M_{QP} - M_{QQ} X_0\right)
Assumes
  • drivers PP: the states with a density in the conditions; QQ 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 nen_e (a quasi-neutral one is refused)
  • sparse LU (splu) with one step of iterative refinement; a zero diagonal of MQQM_{QQ} (a state without losses) or a singular factorisation raises SingularSystemError
References
Built from

effective_rate

functionsource

Return the effective rate coefficient from source to target in m^3/s.

effective rate
Ksource→target=Mtarget,sourceeffne[m3/s]K_{\mathrm{source}\to\mathrm{target}} = \frac{M^{\mathrm{eff}}_{\mathrm{target},\mathrm{source}}}{n_e} \quad [\mathrm{m^3/s}]
hydrogen
SCR=MH+,H(1)effne,αCR=MH(1),H+effneS_{\mathrm{CR}} = \frac{M^{\mathrm{eff}}_{\mathrm{H^+},\mathrm{H}(1)}}{n_e}, \qquad \alpha_{\mathrm{CR}} = \frac{M^{\mathrm{eff}}_{\mathrm{H}(1),\mathrm{H^+}}}{n_e}
Assumes
  • the diagonal (source=target\mathrm{source} = \mathrm{target}) is minus the driver's total effective loss coefficient
  • three-body recombination enters M⋅,H+M_{\cdot,\mathrm{H^+}} with k ne2k\,n_e^2, so αCR\alpha_{\mathrm{CR}} depends on nen_e
  • effective rates are results, never reactions of a network
References

population_coefficient

functionsource

Return n_state / (n_e n_driver) in m^3.

coefficient
nqne nd=Cqdne[m3]\frac{n_q}{n_e\, n_d} = \frac{C_{qd}}{n_e} \quad [\mathrm{m^3}]