Skip to content

Using openmc material.deplete()#37

Merged
jbae11 merged 7 commits into
jbae11:mainfrom
shimwell:using-openmc-material.deplete()
Feb 25, 2026
Merged

Using openmc material.deplete()#37
jbae11 merged 7 commits into
jbae11:mainfrom
shimwell:using-openmc-material.deplete()

Conversation

@shimwell

@shimwell shimwell commented Aug 5, 2025

Copy link
Copy Markdown
Collaborator

On the develop branch we now have the material.deplete method available. So in theory we can replace quite a lot of code by using that method

@shimwell

shimwell commented Aug 6, 2025

Copy link
Copy Markdown
Collaborator Author

Ah this is reloading the nuclear data each time and therefore taking a long time to compute. I should make use of the new openmc.lib.TemporarySession feature to speed this up.

@shimwell shimwell marked this pull request as draft August 6, 2025 09:14
@shimwell shimwell marked this pull request as draft August 6, 2025 09:14
@shimwell

Copy link
Copy Markdown
Collaborator Author

I added the temporary session

CI is now passing but taking 4 hours.

This is still an increase from the 40 mins it.

I think we need to add session argument to the openmc.Material.deplete function to see if that helps

@shimwell

shimwell commented Nov 20, 2025

Copy link
Copy Markdown
Collaborator Author

just updated this PR as there have been some improvements in openmc deplete and I notice it brought the time down from 4 hours to 2 hours. still not as quick as the existing code so not ready to merge.

@shimwell

This comment was marked as outdated.

@shimwell

shimwell commented Feb 25, 2026

Copy link
Copy Markdown
Collaborator Author

Awesome this small change took us down to 31 mins

@shimwell shimwell marked this pull request as ready for review February 25, 2026 17:18
@shimwell

Copy link
Copy Markdown
Collaborator Author

Super reduce chain reduce to 28 mins.

I think this is ready for review now.

@jbae11 jbae11 merged commit acf55c1 into jbae11:main Feb 25, 2026
1 check 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