openmc.lib.MeshFilter

class openmc.lib.MeshFilter(obj=None, uid=None, new=True, index=None)[source]

Mesh filter stored internally.

This class exposes a Mesh filter that is stored internally in the OpenMC library. To obtain a view of a Mesh filter with a given ID, use the openmc.lib.filters mapping.

Parameters:
  • mesh (openmc.lib.Mesh) – Mesh to use for the filter

  • uid (int or None) – Unique ID of the Mesh filter

  • new (bool) – When index is None, this argument controls whether a new object is created or a view of an existing object is returned.

  • index (int) – Index in the filters array.

Variables:
  • filter_type (str) – Type of filter

  • mesh (openmc.lib.Mesh) – Mesh used for the filter

  • translation (Iterable of float) – 3-D coordinates of the translation vector

  • rotation (Iterable of float) – The rotation matrix or angles of the filter mesh. This can either be a fully specified 3 x 3 rotation matrix or an Iterable of length 3 with the angles in degrees about the x, y, and z axes, respectively.