openmc.Intersection

class openmc.Intersection(*nodes)[source]

Intersection of two or more regions.

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

>>> equator = openmc.ZPlane(z0=0.0)
>>> earth = openmc.Sphere(R=637.1e6)
>>> northern_hemisphere = -earth & +equator
>>> southern_hemisphere = -earth & -equator
>>> type(northern_hemisphere)
<class 'openmc.region.Intersection'>
Parameters:

*nodes – Regions to take the intersection of

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