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 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
- Variables
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
- Returns
Spatial distribution generated from XML element
- Return type