openmc.data.PhotonReaction

class openmc.data.PhotonReaction(mt)[source]

Photon-induced reaction

Parameters:

mt (int) – The ENDF MT number for this reaction.

Variables:
  • anomalous_real (openmc.data.Tabulated1D) – Real part of the anomalous scattering factor
  • anomlaous_imag (openmc.data.Tabulated1D) – Imaginary part of the anomalous scatttering factor
  • mt (int) – The ENDF MT number for this reaction.
  • scattering_factor (openmc.data.Tabulated1D) – Coherent or incoherent form factor.
  • xs (Callable) – Cross section as a function of incident photon energy
classmethod from_ace(ace, mt)[source]

Generate photon reaction from an ACE table

Parameters:
Returns:

Photon reaction data

Return type:

openmc.data.PhotonReaction

classmethod from_endf(ev, mt)[source]

Generate photon reaction from an ENDF evaluation

Parameters:
Returns:

Photon reaction data

Return type:

openmc.data.PhotonReaction

classmethod from_hdf5(group, mt, energy)[source]

Generate photon reaction from an HDF5 group

Parameters:
  • group (h5py.Group) – HDF5 group to read from
  • mt (int) – The MT value of the reaction to get data for
  • energy (Iterable of float) – arrays of energies at which cross sections are tabulated at
Returns:

Photon reaction data

Return type:

openmc.data.PhotonReaction

to_hdf5(group, energy, Z)[source]

Write photon reaction to an HDF5 group

Parameters:
  • group (h5py.Group) – HDF5 group to write to
  • energy (Iterable of float) – arrays of energies at which cross sections are tabulated at
  • Z (int) – atomic number