openmc.Union

class openmc.Union(*nodes)[source]

Union of two or more regions.

Instances of Union are generally created via the __or__ operator applied to two instances of openmc.Region. This is illustrated in the following example:

>>> s1 = openmc.ZPlane(z0=0.0)
>>> s2 = openmc.Sphere(R=637.1e6)
>>> type(-s2 | +s1)
<class 'openmc.region.Union'>
Parameters:

*nodes – Regions to take the union of

Variables:
  • nodes (tuple of openmc.Region) – Regions to take the union of
  • bounding_box (tuple of numpy.array) – Lower-left and upper-right coordinates of an axis-aligned bounding box