ndiffusion.scale_to_critical

ndiffusion.scale_to_critical(mats, keff)[source]

Return a copy of mats with nusigf divided by keff.

A transient should start from a genuine steady state. The flux from a k-eigenvalue solve satisfies A phi = (1/k) B phi, so unless k is exactly 1 it is not a steady state of the time-dependent equation and the “unperturbed” transient drifts from the first step - which makes any reactivity insertion measured against it meaningless. Scaling nusigf by 1/k makes the same flux an exact fixed point.

Parameters:
  • mats (Materials) – Forward cross sections, typically the ones just handed to a k-eigenvalue solver.

  • keff (float) – Eigenvalue from that solve.

Returns:

A new Materials; the input is not modified.

Return type:

Materials

Raises:

ValueError – If keff is not positive.