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

Erroneous/Unexpected Behavior with Photon Scattering Tallies #3243

Open
2 of 3 tasks
nelsonag opened this issue Jan 5, 2025 · 1 comment
Open
2 of 3 tasks

Erroneous/Unexpected Behavior with Photon Scattering Tallies #3243

nelsonag opened this issue Jan 5, 2025 · 1 comment
Labels

Comments

@nelsonag
Copy link
Contributor

nelsonag commented Jan 5, 2025

Bug Description

Tests of the photon tally results were performed to understand how close the photon tallying system is to being used to create MGXS library. The following deficiencies were noted:

Steps to Reproduce

See the attached .zip file for a model.xml, orig_tallies.out (before #3242) and new_tallies.out (after #3242)

Environment

  • Running on an up-to-date Arch Linux with GCC 14.2.1.
  • Executing a locally compiled instance of the develop branch of OpenMC, up-to-date as of 1/5/2025.
  • Run using the endf b 7.1 data set from www.openmc.org
@nelsonag nelsonag added the Bugs label Jan 5, 2025
@nelsonag
Copy link
Contributor Author

nelsonag commented Jan 6, 2025

The scatter production issue (box 2) is because p.mu is not used during photon kinematics routines and instead a local mu variable is used. That's an easy fix. I can't fathom why p.mu isn't used besides this just being lost in the transition from Fortran to C which was happening at nearly the same time as photon physics were added.

I can get this fixed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant