openmc.WeightWindowGenerator

class openmc.WeightWindowGenerator(mesh: MeshBase, energy_bounds: Sequence[float] | None = None, particle_type: str | int | ParticleType = 'neutron', method: str = 'magic', targets: Tallies | Iterable[int] | None = None, max_realizations: int = 1, update_interval: int = 1, on_the_fly: bool = True)[source]

Class passed to setting to govern weight window generation using the OpenMC executable

Parameters:
  • mesh (openmc.MeshBase) – Mesh used to represent the weight windows spatially

  • energy_bounds (Iterable of Real) – A list of values for which each successive pair constitutes a range of energies in [eV] for a single bin. If no energy bins are provided, the maximum and minimum energy for the data available at runtime.

  • particle_type (str or int or openmc.ParticleType) – Particle type the weight windows apply to

  • method ({'magic', 'fw_cadis'}) – The weight window generation methodology applied during an update.

  • targets (openmc.Tallies or iterable of int) – Target tallies for local variance reduction via FW-CADIS.

  • max_realizations (int) – The upper limit for number of tally realizations when generating weight windows.

  • update_interval (int) – The number of tally realizations between updates.

  • on_the_fly (bool) – Whether or not to apply weight windows on the fly.

Variables:
  • mesh (openmc.MeshBase) – Mesh used to represent the weight windows spatially

  • energy_bounds (Iterable of Real) – A list of values for which each successive pair constitutes a range of energies in [eV] for a single bin

  • particle_type (openmc.ParticleType) – Particle type the weight windows apply to

  • method ({'magic', 'fw_cadis'}) – The weight window generation methodology applied during an update.

  • targets (openmc.Tallies or numpy.ndarray) – Target tallies for local variance reduction via FW-CADIS.

  • max_realizations (int) – The upper limit for number of tally realizations when generating weight windows.

  • update_interval (int) – The number of tally realizations between updates.

  • update_parameters (dict) – A set of parameters related to the update.

  • on_the_fly (bool) – Whether or not to apply weight windows on the fly.