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

added script for openmc lib example that changes material on a parameter study #262

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

shimwell
Copy link
Member

This script performs many simulations to find Tritium Breeding Ratio (TBR)
as a function of lithium 6 enrichment while only loading the nuclear data for
the nuclides just once.

As the simulation for TBR is quick and the loading of nuclear data is a relatively
large part of the process this saves a significant amount of time.
Using just the standard openmc python API one would have to load the same
nuclear data for each simulation.

openmc.lib provides Python bindings to the C/C++ API so we can have fine grain
control of the loading of the data, accessing the tallies and changing materials.

@shimwell shimwell merged commit f774625 into main Jan 18, 2024
16 checks passed
@shimwell shimwell deleted the adding_openmc_lib_material_changing_example branch March 13, 2024 16:22
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.

1 participant