openmc.model.RectangularPrism

class openmc.model.RectangularPrism(width: float, height: float, axis: str = 'z', origin: Sequence[float] = (0.0, 0.0), boundary_type: str = 'transmission', albedo: float = 1.0, corner_radius: float = 0.0)[source]

Infinite rectangular prism bounded by four planar surfaces.

New in version 0.14.0.

Parameters
  • width (float) – Prism width in units of [cm]. The width is aligned with the x, x, or z axes for prisms parallel to the x, y, or z axis, respectively.

  • height (float) – Prism height in units of [cm]. The height is aligned with the x, y, or z axes for prisms parallel to the x, y, or z axis, respectively.

  • axis ({'x', 'y', 'z'}) – Axis with which the infinite length of the prism should be aligned.

  • origin (Iterable of two floats) – Origin of the prism. The two floats correspond to (y,z), (x,z) or (x,y) for prisms parallel to the x, y or z axis, respectively.

  • boundary_type ({'transmission, 'vacuum', 'reflective', 'periodic', 'white'}) – Boundary condition that defines the behavior for particles hitting the surfaces comprising the rectangular prism.

  • albedo (float, optional) – Albedo of the prism’s surfaces as a ratio of particle weight after interaction with the surface to the initial weight. Values must be positive. Only applicable if the boundary type is ‘reflective’, ‘periodic’, or ‘white’.

  • corner_radius (float) – Prism corner radius in units of [cm].