openmc.stats.Box

class openmc.stats.Box(lower_left, upper_right, only_fissionable=False)[source]

Uniform distribution of coordinates in a rectangular cuboid.

Parameters:
  • lower_left (Iterable of float) – Lower-left coordinates of cuboid
  • upper_right (Iterable of float) – Upper-right coordinates of cuboid
  • only_fissionable (bool, optional) – Whether spatial sites should only be accepted if they occur in fissionable materials
Variables:
  • lower_left (Iterable of float) – Lower-left coordinates of cuboid
  • upper_right (Iterable of float) – Upper-right coordinates of cuboid
  • only_fissionable (bool, optional) – Whether spatial sites should only be accepted if they occur in fissionable materials
classmethod from_xml_element(elem)[source]

Generate box distribution from an XML element

Parameters:elem (xml.etree.ElementTree.Element) – XML element
Returns:Box distribution generated from XML element
Return type:openmc.stats.Box
to_xml_element()[source]

Return XML representation of the box distribution

Returns:element – XML element containing box distribution data
Return type:xml.etree.ElementTree.Element