Batched reduction
The equations of opencr.backends.batched, declared on the code that implements them and checked by the tests.
matrices
functionsourceReturn k of shape (B, n_reactions) and M of shape (B, n, n) on xp.
- matrix
- Assumes
- the net stoichiometry (states reactions), the selector of each reaction's one heavy reactant (reactions states), the electrons among the reactants
- one dense
einsumon cunumpy'sxp(NumPy or CuPy for the whole process) - Maxwellian electrons: the cross-section integrals of all reactions stacked and evaluated 32 temperatures per chunk; a non-Maxwellian EEDF is refused
run
functionsourceReturn the reduction at every pair of electron_temperatures and electron_densities.
- reduction
- pec
- Assumes
- one heavy reactant per reaction and a given ; the driver densities do not enter (the system is linear)
- one batched dense
xp.linalg.solvefor all points; the reference is the per-point sparsequasi_static
- Built from