openmc.deplete.d1s.apply_time_correction

openmc.deplete.d1s.apply_time_correction(tally: Tally, time_correction_factors: dict[str, ndarray], index: int = -1, sum_nuclides: bool = True) Tally[source]

Apply time correction factors to a tally.

This function applies the time correction factors at the given index to a tally that contains a ParentNuclideFilter. When sum_nuclides is True, values over all parent nuclides will be summed, leaving a single value for each filter combination.

Parameters:
  • tally (openmc.Tally) – Tally to apply the time correction factors to

  • time_correction_factors (dict) – Time correction factors as returned by time_correction_factors()

  • index (int, optional) – Index of the time of interest. If N timesteps are provided in time_correction_factors(), there are N + 1 times to select from. The default is -1 which corresponds to the final time.

  • sum_nuclides (bool) – Whether to sum over the parent nuclides

Returns:

Derived tally with time correction factors applied

Return type:

openmc.Tally