openmc.data.DiscretePhoton

class openmc.data.DiscretePhoton(primary_flag, energy, atomic_weight_ratio)[source]

Discrete photon energy distribution

Parameters
  • primary_flag (int) – Indicator of whether the photon is a primary or non-primary photon.

  • energy (float) – Photon energy (if lp==0 or lp==1) or binding energy (if lp==2).

  • atomic_weight_ratio (float) – Atomic weight ratio of the target nuclide responsible for the emitted particle

Variables
  • primary_flag (int) – Indicator of whether the photon is a primary or non-primary photon.

  • energy (float) – Photon energy (if lp==0 or lp==1) or binding energy (if lp==2).

  • atomic_weight_ratio (float) – Atomic weight ratio of the target nuclide responsible for the emitted particle

classmethod from_ace(ace, idx)[source]

Generate discrete photon energy distribution from an ACE table

Parameters
Returns

Discrete photon energy distribution

Return type

openmc.data.DiscretePhoton

classmethod from_hdf5(group)[source]

Generate discrete photon energy distribution from HDF5 data

Parameters

group (h5py.Group) – HDF5 group to read from

Returns

Discrete photon energy distribution

Return type

openmc.data.DiscretePhoton

to_hdf5(group)[source]

Write distribution to an HDF5 group

Parameters

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