openmc.stats.Watt

class openmc.stats.Watt(a=988000.0, b=2.249e-06)[source]

Watt fission energy spectrum.

The Watt fission energy spectrum is characterized by two parameters \(a\) and \(b\) and has density function \(p(E) dE = c e^{-E/a} \sinh \sqrt{b \, E} dE\).

Parameters:
  • a (float) – First parameter of distribution
  • b (float) – Second parameter of distribution
Variables:
  • a (float) – First parameter of distribution
  • b (float) – Second parameter of distribution
to_xml_element(element_name)[source]

Return XML representation of the Watt distribution

Parameters:element_name (str) – XML element name
Returns:element – XML element containing Watt distribution data
Return type:xml.etree.ElementTree.Element