openmc.data.NBodyPhaseSpace

class openmc.data.NBodyPhaseSpace(total_mass, n_particles, atomic_weight_ratio, q_value)[source]

N-body phase space distribution

Parameters
  • total_mass (float) – Total mass of product particles

  • n_particles (int) – Number of product particles

  • atomic_weight_ratio (float) – Atomic weight ratio of target nuclide

  • q_value (float) – Q value for reaction in eV

Variables
  • total_mass (float) – Total mass of product particles

  • n_particles (int) – Number of product particles

  • atomic_weight_ratio (float) – Atomic weight ratio of target nuclide

  • q_value (float) – Q value for reaction in eV

classmethod from_ace(ace, idx, q_value)[source]

Generate N-body phase space distribution from ACE data

Parameters
  • ace (openmc.data.ace.Table) – ACE table to read from

  • idx (int) – Index in XSS array of the start of the energy distribution data (LDIS + LOCC - 1)

  • q_value (float) – Q-value for reaction in eV

Returns

N-body phase space distribution

Return type

openmc.data.NBodyPhaseSpace

classmethod from_endf(file_obj)[source]

Generate N-body phase space distribution from an ENDF evaluation

Parameters

file_obj (file-like object) – ENDF file positions at the start of the N-body phase space distribution

Returns

N-body phase space distribution

Return type

openmc.data.NBodyPhaseSpace

classmethod from_hdf5(group)[source]

Generate N-body phase space distribution from HDF5 data

Parameters

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

Returns

N-body phase space distribution

Return type

openmc.data.NBodyPhaseSpace

to_hdf5(group)[source]

Write distribution to an HDF5 group

Parameters

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