openmc.data.EnergyDistribution

class openmc.data.EnergyDistribution[source]

Abstract superclass for all energy distributions.

static from_endf(file_obj, params)[source]

Generate energy distribution from an ENDF evaluation

Parameters:
  • file_obj (file-like object) – ENDF file positioned at the start of a section for an energy distribution.
  • params (list) – List of parameters at the start of the energy distribution that includes the LF value indicating what type of energy distribution is present.
Returns:

A sub-class of openmc.data.EnergyDistribution

Return type:

openmc.data.EnergyDistribution

static from_hdf5(group)[source]

Generate energy distribution from HDF5 data

Parameters:group (h5py.Group) – HDF5 group to read from
Returns:Energy distribution
Return type:openmc.data.EnergyDistribution