openmc.stats.Monodirectional

class openmc.stats.Monodirectional(reference_uvw: Sequence[float] = [1.0, 0.0, 0.0])[source]

Monodirectional angular distribution.

A monodirectional angular distribution is one for which the polar and azimuthal angles are always the same. It is completely specified by the reference direction vector.

Parameters

reference_uvw (Iterable of float) – Direction from which polar angle is measured. Defaults to the positive x-direction.

classmethod from_xml_element(elem: Element)[source]

Generate monodirectional distribution from an XML element

Parameters

elem (lxml.etree._Element) – XML element

Returns

Monodirectional distribution generated from XML element

Return type

openmc.stats.Monodirectional

to_xml_element()[source]

Return XML representation of the monodirectional distribution

Returns

element – XML element containing monodirectional distribution data

Return type

lxml.etree._Element