# openmc.stats.CartesianIndependent¶

class openmc.stats.CartesianIndependent(x, y, z)[source]

Spatial distribution with independent x, y, and z distributions.

This distribution allows one to specify a coordinates whose x-, y-, and z- components are sampled independently from one another.

Parameters: x (openmc.stats.Univariate) – Distribution of x-coordinates y (openmc.stats.Univariate) – Distribution of y-coordinates z (openmc.stats.Univariate) – Distribution of z-coordinates x (openmc.stats.Univariate) – Distribution of x-coordinates y (openmc.stats.Univariate) – Distribution of y-coordinates z (openmc.stats.Univariate) – Distribution of z-coordinates
classmethod from_xml_element(elem)[source]

Generate spatial distribution from an XML element

Parameters: elem (xml.etree.ElementTree.Element) – XML element Spatial distribution generated from XML element openmc.stats.CartesianIndependent
to_xml_element()[source]

Return XML representation of the spatial distribution

Returns: element – XML element containing spatial distribution data xml.etree.ElementTree.Element