Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for MaterialFromFilter for tally filters #2719

Open
shimwell opened this issue Oct 4, 2023 · 0 comments
Open

Request for MaterialFromFilter for tally filters #2719

shimwell opened this issue Oct 4, 2023 · 0 comments

Comments

@shimwell
Copy link
Member

shimwell commented Oct 4, 2023

Description

Currently we have a nice way of tallying neutrons from particular cells that contribute to a tally with the openmc.CellFromFilter. This great for many use cases

However I have a use case where my detector cell is surrounded by void space (cell with no fill material) and I would like to know what cells or materials the neutrons interact with prior to arriving at the detector.

Hence it might be a solution to have a new filter called openmc.MaterialFromFilter which acts in a similar manner to the openmc.CellFromFilter. One difference is that neutrons won't scatter in the void material so the last interaction material will be able to show me where neutrons come from before interacting with my detector 🎉

Tagging @bam241 @rlbarker FYI

Alternatives

Add a flag to the CellFromFilter to ignore a subject of cells (like void cells)

Compatibility

Adding a new filter but not breaking API

@bam241 bam241 mentioned this issue Oct 27, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant