# Maximum number of lost particles has been reached Error

**URL:** <https://openmc.discourse.group/t/maximum-number-of-lost-particles-has-been-reached-error/1644>\
**Category:** User Support\
**Created:** [January 18, 2022, 1:21pm UTC](https://openmc.discourse.group/t/maximum-number-of-lost-particles-has-been-reached-error/1644 "2022-01-18T13:21:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfonsusrp](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@alfonsusrp](https://openmc.discourse.group/u/alfonsusrp)\
**Post date:** [January 18, 2022, 1:21pm UTC](https://openmc.discourse.group/t/maximum-number-of-lost-particles-has-been-reached-error/1644/1 "2022-01-18T13:21:18Z")

</div>

Hello everyone, I’m a relatively new user of OpenMC and monte carlo simulation softwares in general. I’ve tried some examples and then tried to do some simple pin simulations with certain height. The geometry i used is based on the NuScale fuel parameter. When i use the reflective boundary type i got this error warnings.  
WARNING: After particle 443 crossed surface 592 it could not be located in any  
cell and it did not leak.  
ERROR: Maximum number of lost particles has been reached.  
Based on that error, im assuming that the problem involves the finite height of the pin and the infinite height of the boundary. Here are the lines of geometry.

#Upper-Lower  
b1\_max = openmc.ZPlane(z0=100.076)  
b1\_min = openmc.ZPlane(z0=-100.076)  
#Stack of 200.152 cm

#Fuel-Gap-Cladding-Moderator  
r1 = openmc.ZCylinder(r=0.81153/2)  
r2 = openmc.ZCylinder(r=0.82804/2)  
r3 = openmc.ZCylinder(r=0.94996/2)

# 

#Pitch  
x1\_max = openmc.XPlane(x0=0.62992)  
x1\_min = openmc.XPlane(x0=-0.62992)  
y1\_max = openmc.YPlane(y0=0.62992)  
y1\_min = openmc.YPlane(y0=-0.62992)

#Universe pin  
pin\_universe = openmc.Universe()

#Fuel Cell  
fp\_cell = openmc.Cell()  
fp\_cell.fill = fp  
fp\_cell.region = -r1 & +b1\_min & -b1\_max  
pin\_universe.add\_cell(fp\_cell)

#Gap  
gap\_cell = openmc.Cell()  
gap\_cell.fill = gap  
gap\_cell.region = +r1 & -r2 & +b1\_min & -b1\_max  
pin\_universe.add\_cell(gap\_cell)

#Cladding  
clad\_cell = openmc.Cell()  
clad\_cell.fill = clad  
clad\_cell.region = +r2 & -r3 & +b1\_min & -b1\_max  
pin\_universe.add\_cell(clad\_cell)

#Moderator  
water\_cell = openmc.Cell()  
water\_cell.fill = water  
water\_cell.region = +r3 & +b1\_min & -b1\_max & +y1\_min & -y1\_max & +x1\_min & -x1\_max  
pin\_universe.add\_cell(water\_cell)

outside = openmc.rectangular\_prism(1.25984, 1.25984, boundary\_type=“reflective”)  
root\_cell = openmc.Cell(fill=pin\_universe, region=outside)  
root\_univ = openmc.Universe(cells=[root\_cell])  
geometry = openmc.Geometry(root\_univ)  
geometry.export\_to\_xml()

Is there any further explanation and clarification for this error? Thank you in advance for your help.
