discrete1.critical0d module

Zero-dimensional criticality helpers.

This module provides small helpers used for 0D (spatially independent) criticality calculations such as a simple power iteration driver.

discrete1.critical0d.power_iteration(angles, xs_total, xs_scatter, xs_fission)[source]

Run a simple power iteration for the 0D problem.

Parameters:
  • angles (int) – Number of angular ordinates to construct.

  • xs_total (numpy.ndarray) – Cross section arrays used by the multigroup solver.

  • xs_scatter (numpy.ndarray) – Cross section arrays used by the multigroup solver.

  • xs_fission (numpy.ndarray) – Cross section arrays used by the multigroup solver.

Returns:

(flux, keff) where flux is the converged group flux and keff is the estimated multiplication factor.

Return type:

tuple