openmc.stats.Box

class openmc.stats.Box(lower_left: Sequence[float], upper_right: Sequence[float], only_fissionable: bool = 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

    Deprecated since version 0.14.1: Use the constraints argument when defining a source object instead.

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

    Deprecated since version 0.14.1: Use the constraints argument when defining a source object instead.

classmethod from_xml_element(elem: Element)[source]

Generate box distribution from an XML element

Parameters

elem (lxml.etree._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

lxml.etree._Element