Task 14: iterative Weight Windows via Python API #274
-
Firstly, thanks very much for this awesome repo. I couldn't find any example related to the new Weight Windows feature of OpenMC before reaching the repo here. This workshop provides a very complete tutorial. The task 3 and 4 create iteratively a weight window to accelerate deep shielding simulations via CAPI. Can I achieve the same effect via PythonAPI to simplify my script? I notice that the task 2 didn't use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for your kind comment and also for the PR fix for those typos earlier. I did have a go at doing the same thing with the pure python api and you can do some weight windows. It has a disadvantage compared to the openmc.lib approach as openmc lib can build on the current simulation, avoid reloading nuclear data and ends up being a bit quicker. The repo I made still exists so feel free to look at the source code over here https://github.com/fusion-energy/openmc_weight_window_generator
|
Beta Was this translation helpful? Give feedback.
Thanks for your kind comment and also for the PR fix for those typos earlier.
I did have a go at doing the same thing with the pure python api and you can do some weight windows. It has a disadvantage compared to the openmc.lib approach as openmc lib can build on the current simulation, avoid reloading nuclear data and ends up being a bit quicker.
The repo I made still exists so feel free to look at the source code over here https://github.com/fusion-energy/openmc_weight_window_generator
max_realizations