openmc.WeightWindowGenerator¶
- class openmc.WeightWindowGenerator(mesh: MeshBase, energy_bounds: Optional[Sequence[float]] = None, particle_type: str = 'neutron', method: str = 'magic', 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 spatiallyenergy_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 ({'neutron', 'photon'}) – Particle type the weight windows apply to
method ({'magic'}) – The weight window generation methodology applied during an update. Only ‘magic’ is currently supported.
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 ({'neutron', 'photon'}) – Particle type the weight windows apply to
method ({'magic'}) – The weight window generation methodology applied during an update. Only ‘magic’ is currently supported.
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.