-
Notifications
You must be signed in to change notification settings - Fork 594
Delayed neutron fraction by isotope with IFP method #3659
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
base: develop
Are you sure you want to change the base?
Conversation
|
You should run clang format (version 15) on cpp source files for CI to successfully run. |
Thanks @GuySten for your help |
|
I think you accidentally removed src/output.cpp and its header. |
You're right. I already restored the output.* files. From the 47 changes, more than 27 are related to tests modifications because we added a new variable to the Particle object. The current version passes all tests in local. |
|
But you also added new files (I think by mistake). |
Co-authored-by: GuySten <[email protected]>
Co-authored-by: GuySten <[email protected]>
Co-authored-by: GuySten <[email protected]>
GuySten
left a comment
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.
Nice work, @OlivaresDarian!
paulromano
left a comment
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.
Putting a placeholder review on this as I'd like to take a look before we merge
|
While trying to fix the current failing tests, I found a bug. |
|
Thanks @OlivaresDarian and @GuySten for this new feature! I would also like to take a look at it before we merge. |
|
I think a nice follow up feature will be to sample more frequently delayed neutrons with lower weight. @JoffreyDorville, @OlivaresDarian, what do you think? |
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.
Hi @GuySten, in commit fcd88d9 to ensure correct results we need to keep the lines that were removed here. Inside the if block, the upper bracket uses delayed_groups[0], while after the else block it uses delayed_groups[1]. This is because ancestor_event_nuclide[0] stores the isotope from which the neutron in delayed_groups[1] was born (the next generation).
Regarding your proposal, I need to investigate a bit more, but it should be possible.
|
My bad, I thought that was a typo. |
GuySten
left a comment
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 added a suggestion to prevent code repetition.
Co-authored-by: GuySten <[email protected]>
Co-authored-by: GuySten <[email protected]>
…age to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
Description
This modification allows the Iterated Fission Probability (IFP) method implemented by @JoffreyDorville to break down the effective delayed neutron fraction$\beta_{eff}$ tally by isotope. This extension of the IFP method enables deeper analyses in reactor physics.
In practice, the IFP tally stores certain ancestor information to compute adjoint-weighted tallies. This adaptation follows the same principle but also records the isotope that generated each delayed neutron. It slightly increases both memory use and computation time.
To use it, you simply need to define a list of nuclides in$\texttt{beta-num-tally.nuclides = [...]}$ .
Fixes #3605
Checklist