Hello everyone,
I have really enjoyed building nuclear reactors in the past 3 years with openmc, however in my latest build I have had issues with some neutrons getting stuck in the middle of materials at the same coordinate and orientation forever (found this by tracking the neutrons), massively slowing down my simulation and giving off this warning:
WARNING: Particle 61 underwent maximum number of events.
I couldn’t find anything wrong with my geometry or material definition, but after much trial and error, I managed to fix this by applying a “rotation” to all my cells, like this:
rotated_cells = []
for cell in cells:
region = cell.region
region = region.rotate((0, 0, 0))
cell.region = region
rotated_cells.append(cell)
universe = openmc.Universe(cells=rotated_cells)
Not sure why this fixed my problem, but I wanted to share this because I was getting quite desperate.
Best,
Alexis