openmc.WeightFilter

class openmc.WeightFilter(values, filter_id=None)[source]

Bins tally events based on the incoming particle weight.

Parameters:
  • Values (Iterable of float) – A list or iterable of the weight boundaries, as float values.

  • filter_id (int) – Unique identifier for the filter

Variables:
  • id (int) – Unique identifier for the filter

  • bins (numpy.ndarray) – An array of integer values representing the weights by which to filter

  • num_bins (int) – The number of filter bins

  • values (numpy.ndarray) – Array of weight boundaries