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

Nth collision tally #54

Merged

Conversation

valeriaRaffuzzi
Copy link
Member

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.

Copy link
Collaborator

@ChasingNeutrons ChasingNeutrons left a 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?

Copy link
Collaborator

@ChasingNeutrons ChasingNeutrons Dec 5, 2023

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done now!

@ChasingNeutrons ChasingNeutrons merged commit d72c0d5 into CambridgeNuclear:main Dec 6, 2023
5 checks passed
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.

2 participants