openmc.MuSurfaceFilter

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

Bins tally events based on the angle of surface crossing.

This filter bins events based on the cosine of the angle between the direction of the particle and the normal to the surface at the point it crosses. Only used in conjunction with a SurfaceFilter and current score.

New in version 0.15.1.

Parameters
  • values (int or Iterable of Real) – A grid of surface crossing angles which the events will be divided into. Values represent the cosine of the angle between the direction of the particle and the normal to the surface at the point it crosses. If an iterable is given, the values will be used explicitly as grid points. If a single int is given, the range [-1, 1] will be divided equally into that number of bins.

  • filter_id (int) – Unique identifier for the filter

Variables
  • values (numpy.ndarray) – An array of values for which each successive pair constitutes a range of surface crossing angle cosines for a single bin.

  • id (int) – Unique identifier for the filter

  • bins (numpy.ndarray) – An array of shape (N, 2) where each row is a pair of cosines of surface crossing angle for a single filter

  • num_bins (Integral) – The number of filter bins