openmc.stats.delta_function

openmc.stats.delta_function(value: float, intensity: float = 1.0) Discrete[source]

Return a discrete distribution with a single point.

Added in version 0.15.1.

Parameters:
  • value (float) – Value of the random variable.

  • intensity (float, optional) – When used for an energy distribution, this can be used to assign an intensity.

Return type:

Discrete distribution with a single point