openmc.Particle

class openmc.Particle(filename)[source]

Information used to restart a specific particle that caused a simulation to fail.

Parameters:

filename (str) – Path to the particle restart file

Variables:
  • current_batch (int) – The batch containing the particle
  • generations_per_batch (int) – Number of generations per batch
  • current_generation (int) – The generation containing the particle
  • n_particles (int) – Number of particles per generation
  • run_mode (int) – Type of simulation (criticality or fixed source)
  • id (long) – Identifier of the particle
  • type (int) – Particle type (1 = neutron, 2 = photon, 3 = electron, 4 = positron)
  • weight (float) – Weight of the particle
  • energy (float) – Energy of the particle in eV
  • xyz (list of float) – Position of the particle
  • uvw (list of float) – Directional cosines of the particle