Skip to content

Pulse-height tally only scores first cell when using a multi-cell CellFilter and EnergyFilter #4018

Description

@crunchypbj

Bug Description

The pulse-height tally does not produce correct results when used with a CellFilter containing multiple cells.

In our model, a single CellFilter is used to score the pulse-height spectrum of a 20×20 array of NaI detector pixels. While the first detector cell produces the expected results, the remaining cells do not receive the expected scores.

The issue is observed when the lowest energy bin of the EnergyFilter starts above zero.

Steps to Reproduce

  1. Create multiple detector cells (e.g. a pixelated detector array).
  2. Create a single CellFilter containing all detector cells.
  3. Define a pulse-height tally using this CellFilter and an EnergyFilter whose first bin starts above zero.
  4. Run the simulation and inspect the pulse-height tally results for each cell.

Environment

  • Operating system: Ubuntu Linux (x86_64, kernel 5.15.0-185-generic)

  • OpenMC version: 0.15.3.dev75+gbca818ced

  • Installation method: System installation on HPC cluster

  • Nuclear data: ENDF/B-VII.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions