# Failed recognizing 3D Sphere boundaries

**URL:** <https://fenicsproject.discourse.group/t/failed-recognizing-3d-sphere-boundaries/6762>\
**Category:** Uncategorized\
**Created:** [October 7, 2021, 8:08am UTC](https://fenicsproject.discourse.group/t/failed-recognizing-3d-sphere-boundaries/6762 "2021-10-07T08:08:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Emanuel\_Gebauer](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/emanuel_gebauer/32/3004_2.png) [@Emanuel\_Gebauer](https://fenicsproject.discourse.group/u/Emanuel_Gebauer)\
**Post date:** [October 7, 2021, 11:17am UTC](https://fenicsproject.discourse.group/t/failed-recognizing-3d-sphere-boundaries/6762/4 "2021-10-07T11:17:25Z")

</div>

I tried running your code, however I ran into some erros at

```auto
with open('PDE_t', 'r') as ff:
    for line in ff:
        secreting_list.append(line.strip())

```

Please provide a minimal example, that shows your problem, but also is easy to understand.

Maybe its easier to use gmsh for your geometry and mark the boundaries with tags. To my knowledge mshr is no longer maintained ([Different behaviour of a mesh coming from generate\_mesh() resp. UnitSquareMesh()? - #5 by dokken](https://fenicsproject.discourse.group/t/different-behaviour-of-a-mesh-coming-from-generate-mesh-resp-unitsquaremesh/1901/5)).

By the way: I also noticed the function solver\_bcs has two indentations, thus is defined every time in the for loop, which might not be the way its inteded right?  
Also I have never seen a tolerance as big as 1 for near. I generally use 1E-14

---

_[View the full topic](https://fenicsproject.discourse.group/t/failed-recognizing-3d-sphere-boundaries/6762)._
