# Cylindrical MeshSurfaceFilter not consistent

**URL:** https://openmc.discourse.group/t/cylindrical-meshsurfacefilter-not-consistent/3223
**Category:** User Support
**Created:** [July 25, 2023, 12:58am UTC](https://openmc.discourse.group/t/cylindrical-meshsurfacefilter-not-consistent/3223 "2023-07-25T00:58:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![maarten](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@maarten](https://openmc.discourse.group/u/maarten)
#### Post date: [July 25, 2023, 12:58am UTC](https://openmc.discourse.group/t/cylindrical-meshsurfacefilter-not-consistent/3223/1 "2023-07-25T00:58:39Z")

</div>

Hello,

I’m working on shielding applications for fusion energy.

I was playing around with using a MeshSurfaceFilter with a cylindrical mesh when I realised that it wasn’t being consistent. In a MeshSurfaceFilter, the max out-value of one cell (say, _x-max out_, x=0) should equal the min input-value of the adjacent cell in that direction (say, _x-min in_, x=1), otherwise one is losing particles across a surface, which shouldn’t happen. This doesn’t seem to be the case when using a cylindrical mesh for the MeshSurfaceFilter. The values are sometime equal, mostly not, but are often in the same order of magnitude.

I’ve seen the results in both more complicated and simplified models. I’ve attached a minimal worked example to demonstrate the issue. I’ve used both a regular and a cylindrical mesh to prove the point; the regular mesh is consistent but the cylindrical is not.

I think this might be a bug, but of course there is the possibility that I am doing something wrong!

Kind regards,

[cylindrical\_meshsurfacefilter\_test.py](https://openmc.discourse.group/uploads/short-url/w3OvEtqYG3Cw98QtAAm5mGZhMjt.py) (2.1 KB)
