-
Notifications
You must be signed in to change notification settings - Fork 30
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
chain_simple.xml missing Cs136 <nuclide> entry #15
Comments
And I will ensure that this is fixed by making sure CI runs properly 😄 |
@paulromano @cfichtlscherer I see two commits that touched Using this chain file, the depletion notebook works locally for me, but I think pushing that will break Christopher's contribution in #11, due to lack of Cs137. I attempted to make a simplified chain containing all the import openmc
import openmc.deplete
simple_chain = openmc.deplete.Chain().from_xml("casl_chain.xml")
simple_chain.reduce(['I135','Xe135','Xe136','Cs135','Cs137','Gd157','Gd156','U234','U235','U238'],level=1)
simple_chain.export_to_xml("chain_simple.xml") Is the original chain file made using |
Hi Lewis, I am sorry, I should habe checked all the other notebooks after changing the I changed the chain_simple.xml by manually, meaning I copied the needed parts for Cs137, Ba137 and Ba137m from the big depletion chain. I thought this would be enough. I now see that the problem was, that we, by adding Cs137, also have reactions that lead to isotopes not presented in the chain. As a solution we could add these missing isotopes (Cs136, Xe137, I134, Cs138, Cs138m, Ba136, Ba135, Ba138, Xe134) without any data as it was done already for Cs135 as an example:
Another option would be to remove the reactions from Cs137. Anyway both of these solutions would manipulate the chain manually. Maybe it is better to look into the Let me know what you think. |
No worries about checking the other notebooks, @cfichtlscherer! CI is supposed to be doing that for us but we recently discovered that the workflow was disabled due to inactivity. It should be up and running again now. @lewisgross1296 it seems the quickest solution might be to add these "termination nuclides" to |
Thanks for listing the isotopes needed and providing an example line! I've just opened a PR, so we can transfer discussion to #16. I don't think I can request review fsr, but @cfichtlscherer I'm looking for your feedback on one small thing there. |
Resolved by #22 |
I recently attempted to run the
depletion.ipynb
, but got an errorWith help from @pshriwise, we realized that #11 added nuclear data to
chain_simple.xml
that was not initially present whendepletion.ipynb
was run. Essentially what happened was that data forCs137
was added with a reaction pathway forCs136
without adding aCs136
<nuclide>
entry in the XML file. Thus, data forCs136
is never loaded into thenuclide_dict
, despite being produced fromCs137
, causing the error.I will fix this in a PR by creating a new chain file from the API that will allow
depltion.ipynb
to run without breakinggamma-detector.ipynb
.The text was updated successfully, but these errors were encountered: