openmc.stats.Watt
- class openmc.stats.Watt(a=988000.0, b=2.249e-06, bias: Univariate | None = None)[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 in units of eV
b (float) – Second parameter of distribution in units of 1/eV
bias (openmc.stats.Univariate, optional) – Distribution for biased sampling.
- Variables:
a (float) – First parameter of distribution in units of eV
b (float) – Second parameter of distribution in units of 1/eV
support (tuple of float) – A 2-tuple (lower, upper) defining the interval over which the distribution is nonzero-valued
bias (openmc.stats.Univariate or None) – Distribution for biased sampling
- evaluate(E)[source]
Evaluate the probability density at the provided value.
- Parameters:
- Returns:
Value of p(x)
- Return type:
- classmethod from_xml_element(elem: Element)[source]
Generate Watt distribution from an XML element
- Parameters:
elem (lxml.etree._Element) – XML element
- Returns:
Watt distribution generated from XML element
- Return type:
- property support
Return the support of the probability distribution.