-
Notifications
You must be signed in to change notification settings - Fork 22
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
Nth collision tally #54
Nth collision tally #54
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks good.
My main comment is that, I think, for practical applications, we are not often interested in the 15th collided neutrons, for example, but neutrons which have undergone some range of collisions - maybe the uncollided and the more than once collided for example. Otherwise this would require knowing how many collisions a neutron will undergo to estimate. Are there any convenient ways in which we can tally these? Would this need a new integer map type? Is this new map type desirable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there should be a check on collisionN here too in the isEqual.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done now!
This PR adds a 1D tally map for the number of collisions that a particle went through.
A collision counter is added to the particle. This is incremented in collisionProcessor_inter, after a collision happened and before reportOutCollision. When a particle is generated by fission, the counter has to be set to zero for the new source particles.