ndiffusion.reaction_rate

ndiffusion.reaction_rate(flux, mats, material_map, kind='nu-fission', nu=2.43, by_group=False)[source]

Reaction rate density Sigma phi per cell.

Parameters:
  • flux (array-like) – (n_cells, G) as the solvers return it, or flat.

  • mats (Materials)

  • material_map (array-like of int) – Material index per cell - the solver’s medium_map, or mesh.material_id on an unstructured mesh.

  • kind ({"nu-fission", "fission", "absorption", "removal"}) – fission is nusigf / nu, since Materials stores only the product. absorption is removal less the out-scatter.

  • nu (float) – Neutrons per fission, used only for kind="fission".

  • by_group (bool) – Return (n_cells, G) instead of summing over groups.

Returns:

(n_cells,), or (n_cells, G) with by_group.

Return type:

numpy.ndarray