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

Allow photon heating to be tallied by nuclide #2076

Merged
merged 3 commits into from
Jun 8, 2022

Conversation

paulromano
Copy link
Contributor

@makeclean pointed out that if you tally heating for photons and ask for it by nuclide, every nuclide currently gives the same value (corresponding to the total). Since photon heating is done in an analog fashion, this PR changes the photon heating score to check which nuclide was responsible for a collision and only score for that nuclide. I've added a unit test that checks for the correct behavior: sum of heating from each nuclide should equal total heating.

@paulromano paulromano requested a review from makeclean June 2, 2022 20:55
@paulromano paulromano requested a review from amandalund as a code owner June 2, 2022 22:18
Copy link
Contributor

@pshriwise pshriwise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty straightforward change. Nice test to go with it too. Thanks @paulromano!

@pshriwise
Copy link
Contributor

@makeclean I'll give this another day or so before merging in case you'd like to have a look.

@pshriwise pshriwise merged commit 50cafaf into openmc-dev:develop Jun 8, 2022
@paulromano paulromano deleted the photon-heating-nuclide branch June 8, 2022 12:20
@makeclean
Copy link
Contributor

Sorry @paulromano, just saw the closed message. Thanks for the fix, I thought it was going to be significantly more complicated than the change you made, so I didn't even attempt myself :)

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

Successfully merging this pull request may close these issues.

3 participants