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

Allow decay only nuclides to be specified in Material for a depletion simulation #2616

Merged
merged 11 commits into from
Sep 14, 2023

Conversation

yardasol
Copy link
Contributor

@yardasol yardasol commented Jul 20, 2023

Description

This PR enables users to specify decay-only nuclides in a Material when running transport-coupled depletion simulations. This could be useful for coupling with external interface codes, as well as for simulating scenarios where there may be buildup of these decay-only nuclides.

Checklist

  • I have performed a self-review of my own code
  • [ ] I have run clang-format on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

@yardasol yardasol added Depletion I/O File Input/Output labels Jul 20, 2023
@yardasol yardasol requested a review from paulromano July 20, 2023 19:12
@yardasol yardasol changed the title Deplete decay only nuclides Allow decay only nuclides to be specified in materials.xml for a depletion simulation Jul 27, 2023
@yardasol yardasol changed the title Allow decay only nuclides to be specified in materials.xml for a depletion simulation Allow decay only nuclides to be specified in Material for a depletion simulation Jul 27, 2023
Copy link
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

@yardasol Thanks so much for this improvement. You'll be happy to know that a request for this very feature came in today during the OpenMC monthly meeting! Sorry it took me a long time to look it over properly.

openmc/deplete/coupled_operator.py Outdated Show resolved Hide resolved
openmc/deplete/coupled_operator.py Outdated Show resolved Hide resolved
openmc/deplete/coupled_operator.py Outdated Show resolved Hide resolved
openmc/deplete/coupled_operator.py Outdated Show resolved Hide resolved
@yardasol
Copy link
Contributor Author

yardasol commented Sep 1, 2023

@paulromano I implemented you suggested change. Let me know what you think.

@yardasol
Copy link
Contributor Author

yardasol commented Sep 5, 2023

Looks like the CI is failing. This is due to my new tests. I suspect this has to do with the most recent commit based on @paulromano's suggestion, as now the decay-only nuclides are passed to the C API which would cause the simulation to crash.

@yardasol
Copy link
Contributor Author

yardasol commented Sep 7, 2023

@paulromano I was incorrect above, the issue was simpler than that.

Copy link
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

Thanks for the updates @yardasol! Approved ✔️

@paulromano paulromano enabled auto-merge (squash) September 13, 2023 17:08
@paulromano paulromano merged commit bbd7756 into openmc-dev:develop Sep 14, 2023
18 checks passed
stchaker pushed a commit to stchaker/openmc that referenced this pull request Oct 25, 2023
…on simulation (openmc-dev#2616)

Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Depletion I/O File Input/Output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants