Cannot solve 'maximum number of lost particles has been reached' issue

Hello, I’ve been trying to model a reactor which has kind of a complex/large geometry and I keep getting this error message:

====================> K EIGENVALUE SIMULATION <====================

Bat./Gen. k Average k
========= ======== ====================
WARNING: After particle 420 crossed surface 2 it could not be located in any
cell and it did not leak.
WARNING: After particle 181 crossed surface 9 it could not be located in any
cell and it did not leak.
WARNING: After particle 342 crossed surface 3 it could not be located in any
WARNING: After particle 512 crossed surface 9 it could not be located in any
cell and it did not leak.
cell and it did not leak.
WARNING: After particle 855 crossed surface 2 it could not be located in any
cell and it did not leak.
WARNING: After particle 25 crossed surface 2 it could not be located in any
cell and it did not leak.
WARNING: After particle 779 crossed surface 2 it could not be located in any
cell and it did not leak.
WARNING: After particle 954 crossed surface 2 it could not be located in any
cell and it did not leak.
WARNING: After particle 301 crossed surface 1 it could not be located in any
cell and it did not leak.
WARNING: After particle 627 crossed surface 2 it could not be located in any
cell and it did not leak.
WARNING: After particle 482 crossed surface 2 it could not be located in any
cell and it did not leak.
WARNING: After particle 366 crossed surface 4 it could not be located in any
cell and it did not leak.
WARNING: After particle 216 crossed surface 2 it could not be located in any
cell and it did not leak.
WARNING: After particle 367 crossed surface 2 it could not be located in any
cell and it did not leak.
WARNING: After particle 964 crossed surface 2 it could not be located in any
cell and it did not leak.
WARNING: After particle 513 crossed surface 3 it could not be located in any
cell and it did not leak.
ERROR: Maximum number of lost particles has been reached.
WARNING: After particle 883 crossed surface 4 it could not be located in any
cell and it did not leak.
ERROR: Maximum number of lost particles has been reached.

Sorry! You were supposed to get help about:
mpi-abort
from the file:
help-mpi-api.txt
But I couldn’t find that topic in the file. Sorry!

[LAPTOP-HMPGT0GC:215237] *** Process received signal ***
[LAPTOP-HMPGT0GC:215237] Signal: Segmentation fault (11)
[LAPTOP-HMPGT0GC:215237] Signal code: Address not mapped (1)
[LAPTOP-HMPGT0GC:215237] Failing at address: (nil)
ERROR: Maximum number of lost particles has been reached.
ERROR: Maximum number of lost particles has been reached.


ERROR: Maximum number of lost particles has been reached.
ERROR: Maximum number of lost particles has been reached.
[LAPTOP-HMPGT0GC:215249] 4 more processes have sent help message help-mpi-api.txt / mpi-abort
[LAPTOP-HMPGT0GC:215249] Set MCA parameter “orte_base_help_aggregate” to 0 to see all help / error messages
Traceback (most recent call last):
File “/home/liliana/FRMII/MNR/Cycle_63V/0101_Fuel_Assembly/one_fuel_element.py”, line 1034, in
openmc.run()
File “/home/liliana/anaconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/executor.py”, line 314, in run
_run(args, output, cwd)
File “/home/liliana/anaconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/executor.py”, line 125, in _run
raise RuntimeError(error_msg)
RuntimeError: Maximum number of lost particles has been reached. WARNING: After particle 883 crossed surface 4 it could not be located in any cell and it did not leak. ERROR: Maximum number of lost particles has been reached. -------------------------------------------------------------------------- Sorry! You were supposed to get help about: mpi-abort from the file: help-mpi-api.txt But I couldn’t find that topic in the file. Sorry! -------------------------------------------------------------------------- [LAPTOP-HMPGT0GC:215237] *** Process received signal *** [LAPTOP-HMPGT0GC:215237] Signal: Segmentation fault (11) [LAPTOP-HMPGT0GC:215237] Signal code: Address not mapped (1) [LAPTOP-HMPGT0GC:215237] Failing at address: (nil) ERROR: Maximum number of lost particles has been reached. ERROR: Maximum number of lost particles has been reached. -------------------------------------------------------------------------- -------------------------------------------------------------------------- ERROR: Maximum number of lost particles has been reached. ERROR: Maximum number of lost particles has been reached. [LAPTOP-HMPGT0GC:215249] 4 more processes have sent help message help-mpi-api.txt / mpi-abort [LAPTOP-HMPGT0GC:215249] Set MCA parameter “orte_base_help_aggregate” to 0 to see all help / error messages

I did not post the entire code in here cuase it reaches around 1000 lines so far, this is a plt I made of the geometry for some context, I really dont know what could be causing this issue since I don’t even understand what it means or what the causes might be, outside pruple is a water graveyard, all surfaces are I think reflective and it consists of 17 plates with fuel as seen in the picture.

If providing the code is needed I will certainly do so :slight_smile:

thanks in advance, and sorry for the inconveniences.
Liliana.

Hi @LilianaQuintero, could you please provide the code for your model?

I think this is due to a problem in your geometry. Either one of the cells is overlapping with the others or one region remains undefined in your code. Open the terminal in the location where your ipynb file is and use the command “openmc -g” to debug the geometry (if you are in a linux OS). As I don’t have access to your geometry xml, I am not sure what surface 4 is in your code, but it seems that surface could be one of the problems.

The code is longer than 32000 so I cannot paste ot here. how can I upload it then?