Population equations
The equations of opencr.kinetics.system, declared on the code that implements them and checked by the tests.
conservation
functionsourceReturn the conserved elements and their matrix over the evolving states.
- conserved
- Assumes
- the atoms of element in evolving state ; checked to
- elements only: charge is not a row, since the electron is not a state
- a reaction that moves an element to a prescribed state or out of the system (wall loss, pumping) removes it from the list
electron_density
functionsourceReturn n_e for the evolving densities n.
- quasi neutral
- Assumes
- the sum runs over every charged state, prescribed and evolving; the electron is never a state
- with
Conditions.electron_densitygiven, is that value
jacobian
functionsourceReturn dR/dn as a sparse matrix.
- jacobian
- Assumes
- the second term only for a quasi-neutral
- a reactant listed twice is two slots: the derivative of each slot is the product of the others, summed
- assembled analytically as a sparse matrix
linear_parts
functionsourceReturn M and b of R = M n + b for a linear system.
- linear
reaction_rates
functionsourceReturn w_r in m^-3 s^-1 for every reaction at the densities n.
- rate
- Assumes
- the multiplicity of state among the reactants (a state listed twice counts twice), that of the electron
- the prescribed states (
Conditions.densities), the evolving ones; and the prescribed densities are folded into one factor per reaction - mass action: in m/s for reactants
- Built from
rhs
functionsourceReturn R(n) = dn/dt for the evolving states.
- balance
- Assumes
- the net stoichiometry (products minus reactants) over the evolving states
- zero-dimensional: no transport beyond explicit wall-loss and pumping reactions
- References
- Built from