-
Notifications
You must be signed in to change notification settings - Fork 508
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
Possible problem tallying photon heating with weight windows enabled #3207
Comments
Hello Patrick! I faced this issue as well during my tests but I haven't had much time to spend on it. |
Yeah I need to dig into this more soon. I'll try to come up with a minimal working example to start -- hopefully a problem where this effect is particularly pronounced. |
Super helpful!! Thank you @SteSeg. |
Bug Description
I was staring at the section on photon heating today and noticed that we may be subtracting too much energy from photon heating tallies when weight windows are applied.
openmc/src/tallies/tally_scoring.cpp
Lines 958 to 981 in 2d988a6
Based on how the
n_bank_second
attribute is incremented in theParticle::create_secondary
method and that this method is applied when splitting particles in weight window application, it seems particles split in application of weight windows will be incorporated into the correction, which I don't believe is correct.openmc/src/weight_windows.cpp
Lines 116 to 118 in 2d988a6
I'll update this issue when I have more information.
The text was updated successfully, but these errors were encountered: