# Particle # could not be located after crossing a boundary of lattice #

**URL:** <https://openmc.discourse.group/t/particle-could-not-be-located-after-crossing-a-boundary-of-lattice/5166>\
**Category:** User Support\
**Created:** [January 20, 2025, 5:16pm UTC](https://openmc.discourse.group/t/particle-could-not-be-located-after-crossing-a-boundary-of-lattice/5166 "2025-01-20T17:16:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![wahidluthfi](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/wahidluthfi/32/3375_2.png) [@wahidluthfi](https://openmc.discourse.group/u/wahidluthfi)\
**Post date:** [January 21, 2025, 9:34am UTC](https://openmc.discourse.group/t/particle-could-not-be-located-after-crossing-a-boundary-of-lattice/5166/3 "2025-01-21T09:34:12Z")

</div>

Dear Abdullah Alharbi, welcome back to the openmc community.  
I checked your model and I think you forgot to declare the axial region at the top and bottom of your fuel plate universe region. it could be seen from the axial plot of your model

 ![image](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/b/bc8c53cb064756eb19a5e5b4180b6d86c5c3674b.png)

So I add some corrections to your regions for cladding and the coolant cell surrounding the cladding. here is the notebook to show my correction to your script  
[AbdullahAlharbi.ipynb](https://openmc.discourse.group/uploads/short-url/zkyEvJe6z0pgrpudzhgbA11TUYu.ipynb) (59.2 KB)

 ![image](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/a/aac7bc4bbfbe1e42508b3f42fe674653729612c9.png)

Since your model is a single fuel assembly surrounded with water, then the k-eff will be low (subcritical), so if you want to calculate the infinite multiplication factor (k-inf), then I also activate your outer region for whole fuel assembly with reflective boundary conditions (BC).  
you can also notice that I removed the vacuum BC from your cladding surface since I think it would be better to use the default transmission BC as mentioned by [magnoxemo](https://openmc.discourse.group/u/magnoxemo). that’s because you still have surrounding coolant in contact with those surfaces.

I also noticed that you have some issues with openmc.plot feature ([Plotting Command Issue](https://openmc.discourse.group/t/plotting-command-issue/5164)), so I add the script to use that feature in the notebook as shown here

 ![image](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/5/58b6fdf8e41414d30529ad787d9dd5c2c0ef39ec.png)

regarding the inconsistency issue based on the plot figure ([Inconsistency with Lattice Components Placement](https://openmc.discourse.group/t/inconsistency-with-lattice-components-placement/5165)), if you think that it comes from the plot resolution, then you can increase the resolution. you can use a fine resolution of up to 1 pixel per 0.1 mm or more as you want, i.e. for a plot with a width of 8 cm, you can use 800 pixels, like this one

 ![image](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/2/29129ec9ec4a1ed9158034d1c22e8a68ff71b860.png)

I also show you the simple methods for declaring your xsdir instead of using `os.environ['OPENMC_CROSS_SECTIONS'] = ...`.

```auto
materials.cross_sections = '/home/eastdusty/openmc_env/share/data/endfb80/endfb-viii.0-hdf5/cross_sections.xml' # XSDIR

```

I hope this could help on your problems

---

_[View the full topic](https://openmc.discourse.group/t/particle-could-not-be-located-after-crossing-a-boundary-of-lattice/5166)._
