openmc.data.AngleDistribution

class openmc.data.AngleDistribution(energy, mu)[source]

Angle distribution as a function of incoming energy

Parameters:
  • energy (Iterable of float) – Incoming energies in eV at which distributions exist
  • mu (Iterable of openmc.stats.Univariate) – Distribution of scattering cosines corresponding to each incoming energy
Variables:
  • energy (Iterable of float) – Incoming energies in eV at which distributions exist
  • mu (Iterable of openmc.stats.Univariate) – Distribution of scattering cosines corresponding to each incoming energy
classmethod from_ace(ace, location_dist, location_start)[source]

Generate an angular distribution from ACE data

Parameters:
  • ace (openmc.data.ace.Table) – ACE table to read from
  • location_dist (int) – Index in the XSS array corresponding to the start of a block, e.g. JXS(9).
  • location_start (int) – Index in the XSS array corresponding to the start of an angle distribution array
Returns:

Angular distribution

Return type:

openmc.data.AngleDistribution

classmethod from_endf(ev, mt)[source]

Generate an angular distribution from an ENDF evaluation

Parameters:
Returns:

Angular distribution

Return type:

openmc.data.AngleDistribution

classmethod from_hdf5(group)[source]

Generate angular distribution from HDF5 data

Parameters:group (h5py.Group) – HDF5 group to read from
Returns:Angular distribution
Return type:openmc.data.AngleDistribution
to_hdf5(group)[source]

Write angle distribution to an HDF5 group

Parameters:group (h5py.Group) – HDF5 group to write to