-
Notifications
You must be signed in to change notification settings - Fork 4
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
Final Edits and Comparison with Cycamore #17
Conversation
Updated based on using a smaller power level to reach a burnup of 50 MWd/kgU and not fry the fuel trying to get 100 MW out of it.
Previous power level of 100 MW and mass of 100 kg (arbitarily chosen) were too high to correspond to a single pin cell model. Lower the power level to match a burnup of 50 MWd/kgU, and the mass to correspond to the volume and density of the fuel. Results still seem a little funky, but it shoul dbe a more accurate/realstic simulation
changed the power to a lienar power density (2-D geometry). I also updated OpenMC, so the cross sections created by OpenMC include many more nuclides. Updated the power for the prototypes to match the needed power for the linear power density
The compositions are correct, but the spent fuel isn't being recorded as traded away.
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 @abachma2, apologies for the late review on this.
in Comparison-results.ipynb
, it is difficult to see the lines for the OpenMCylcus
results in
your figures. I'd reccomend using a different line style (maybe try using dots: '.')
My other comments are below.
Created an array for fresh and spent fuel compositions that have veen seen already. Run depletion if all of the compositions in the core have not all been seen before
To help speed up run times, I have added in some arrays to keep track of pre-depletion and post-depletion fuel compositions. If all of the pre-depletion compositions have been seen before (i.e., are in the pre-depletion composition array) then the corresponding post-depletion composition is applied to each of the assemblies instead of re-running the depletion solver. |
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.
Good job with maintaining good documentation and tests.
Do you have any comments to add for differences observed in the comparison results plots? E.g. whether the differences are expected and why they appear.
My suggestions for other changes are provided below.
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 approve but I assume we're waiting on @yardasol's comments. Remember to test locally again if you made new changes to your tests during the review period.
@yardasol Do you have any other comments or suggested changes for this PR? |
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 @abachma2,
This is almost ready for merge. Looks like you resolved a couple of my comments without actually making any code changes. I've added additional in-line commments with some more context and unresolved those comments. Also, there are several code comments that should be deleted.
Thanks for the feedback @yardasol. I think I have addressed your comments now (I must have missed a few from your last review, my apologies). |
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.
Great work @abachma2. Just one more comment to remove then I can merge
Co-authored-by: Olek <45364492+yardasol@users.noreply.github.com>
This PR got a bit bigger than I intended, so apologizes in advance.
This PR includes:
examples
directoryopenmcyclus/DepleteReactor.py
) include:ResBufMaterialInvs
Depletion
classDepletion
(openmcyclus/depletion.py
) class include:update_materials
instead of writing to thematerials.xml
filerun_depletion
method to better match what is done inDepleteReactor
get_spent_comps()
openmcyclus/depletion.py
comparison/Comparison-results.ipynb
to hold the results of the comparisoncomparison/OpenMC_model.ipynb
to show how the cross sections were generated for OpenMCyclus, and the spent fuel compositions that were used in Cycamorecomparison/cycamore_recycle.xml
: Cyclus input file using the Cycamore Reactor archetypecomparison/openmcyclus_recycle.xml
: Cyclus input file using the OpenMCyclus DepleteReactor archetypeThe CI is still broken, partly because of Issue #12. This will be investigated and updated in a future PR. The unit tests all pass locally. This PR should conclude the primary development of OpenMCyclus::DepleteReactor!