openmc.Source

class openmc.Source(space=None, angle=None, energy=None, filename=None, strength=1.0)[source]

Distribution of phase space coordinates for source sites.

Parameters:
  • space (openmc.stats.Spatial, optional) – Spatial distribution of source sites
  • angle (openmc.stats.UnitSphere, optional) – Angular distribution of source sites
  • energy (openmc.stats.Univariate, optional) – Energy distribution of source sites
  • filename (str, optional) – Source file from which sites should be sampled
  • strength (Real) – Strength of the source
Variables:
to_xml()[source]

Return XML representation of the source

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