# Mesh error... or not?

**URL:** <https://www.simscale.com/forum/t/mesh-error-or-not/84910>\
**Category:** Project Support\
**Created:** [March 29, 2019, 5:37pm UTC](https://www.simscale.com/forum/t/mesh-error-or-not/84910 "2019-03-29T17:37:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhartung](https://www.simscale.com/forum/user_avatar/www.simscale.com/jhartung/32/23768_2.png) [@jhartung](https://www.simscale.com/forum/u/jhartung)\
**Post date:** [March 29, 2019, 5:37pm UTC](https://www.simscale.com/forum/t/mesh-error-or-not/84910/1 "2019-03-29T17:37:54Z")

</div>

I’m now attempting to refine a mesh based on best practices from @retsam which worked very well. Unfortunately I’m consistently getting a mesh error. The SimScale front end gives me the following error:  
`The mesh did not pass validity checks. Increasing the mesh fineness or adding local refinements to geometrical details potentially fixes this issue. Please contact our support for further assistance.`  
However when I go into the meshing log, I see a series of iterations removing illegal faces until this is reached:

 ![44%20AM](https://www.simscale.com/forum/uploads/default/original/3X/4/8/485c8cd975b23d5028ca8dcdf8904846e6ee6f3c.png)  
@jousefm any ideas?  
Project here: [https://www.simscale.com/workbench/?pid=6869950879105363263&mi=spec%3Aaad0a8a3-d5ca-461d-b235-d2daa9a0c175%2Cservice%3AMESHING%2Cstrategy%3A39&sh=3](https://www.simscale.com/workbench/?pid=6869950879105363263&mi=spec%3Aaad0a8a3-d5ca-461d-b235-d2daa9a0c175%2Cservice%3AMESHING%2Cstrategy%3A39&sh=3)

---

<div class="post-metadata">

**Author:** ![Retsam](https://www.simscale.com/forum/user_avatar/www.simscale.com/retsam/32/22410_2.png) [@Retsam](https://www.simscale.com/forum/u/Retsam)\
**Post date:** [March 29, 2019, 6:46pm UTC](https://www.simscale.com/forum/t/mesh-error-or-not/84910/2 "2019-03-29T18:46:43Z")

</div>

Hi @jhartung; I see you run now simulation after simulation and dare to cancel them as well. Very good!

In your mesh log you should **pay attention on results of Boundary layer report near the meshing log end**. You have a lot of tiny faces, quite few are not having the benefit of going to 5 bounding layers extension (you should expect something like 4-5), hence a risk that some regions could impact simulation quality. It looks like that (fragment):

```
patch faces layers overall thickness
                                            [m] [%]
----- ----- ------ --- ---
solid_0_solid_0_face_0 102 2.46 0.0111 59.6    
solid_0_solid_0_face_2 798 4.07 0.0155 83.5    
solid_0_solid_0_face_3 166 5 0.0117 62.9    
solid_0_solid_0_face_4 798 4.08 0.0156 84      
solid_1_solid_1_face_0 4019 4.57 0.0236 91.6    
solid_1_solid_1_face_1 2633 3.64 0.0159 81.2    
solid_1_solid_1_face_2 1605 4.28 0.02 90.6    
solid_1_solid_1_face_3 668 4.21 0.0261 91.1    
solid_1_solid_1_face_4 680 4.26 0.026 91.8    
solid_1_solid_1_face_8 4305 4.66 0.0233 92.6    
solid_1_solid_1_face_11 60 0 0 0       
solid_1_solid_1_face_12 8879 4.45 0.0217 90.8    
solid_1_solid_1_face_13 5611 4.37 0.0221 90.2    
solid_1_solid_1_face_14 125 5 0.0246 92.7    
solid_1_solid_1_face_15 1102 5 0.0218 95.5    
solid_1_solid_1_face_16 479 4.92 0.0193 95.9    
solid_1_solid_1_face_17 100 5 0.0193 95      
solid_1_solid_1_face_18 85 5 0.018 97.2    
solid_1_solid_1_face_19 57 5 0.0184 93.3    
solid_1_solid_1_face_20 85 4.76 0.0177 95.2     

```

As I do not know what validity checks are really doing, this is a hint only about possible culprit. I suppose you can find some additional information on Inflating boundary layers in other forum posts.

Cheers,

Retsam

---

<div class="post-metadata">

**Author:** ![jhartung](https://www.simscale.com/forum/user_avatar/www.simscale.com/jhartung/32/23768_2.png) [@jhartung](https://www.simscale.com/forum/u/jhartung)\
**Post date:** [March 29, 2019, 9:13pm UTC](https://www.simscale.com/forum/t/mesh-error-or-not/84910/3 "2019-03-29T21:13:31Z")

</div>

Thank you @Retsam. When you point these things out, they seem really simple.

Here’s the best forum post I could find for proper y+

> [@Y+ (yplus) - Generate Wall Spacing for CFD](https://www.simscale.com/forum/t/y-yplus-generate-wall-spacing-for-cfd/82451):
>
> \underline{\textbf{Applying y+ through meshing in SimScale}} SimScale allows you to perform “Inflate Boundary Layers” on to the geometry surface as seen below. This option can be applied to a surface where the layers will then be inflated from the surface to allow you to control the y+ of the mesh. You then need to first determine your desired y+ depending on your usage of wall functions or not, which turbulence model you are using, the Reynold’s Numbers involved…

In fact, I was probably several orders of magnitude too thick on my boundary layer. I made the simple excel calculator there and ended up with the final layer thickness as a function of expansion ratio and y+=1 for my reference length from the calculator here: [http://www.pointwise.com/yplus/](http://www.pointwise.com/yplus/)

---

<div class="post-metadata">

**Author:** ![jousefm](https://www.simscale.com/forum/user_avatar/www.simscale.com/jousefm/32/34908_2.png) [@jousefm](https://www.simscale.com/forum/u/jousefm)\
**Post date:** [March 29, 2019, 10:06pm UTC](https://www.simscale.com/forum/t/mesh-error-or-not/84910/4 "2019-03-29T22:06:08Z")

</div>

Hi there!

What Andrzej (@Retsam) said is indeed correct and should be taken care of. I also assume that his answer clarifies the doubts you had in this post: **[Simscale not showing Y+ in Post-Processing - #22 by jhartung](https://www.simscale.com/forum/t/simscale-not-showing-y-in-post-processing/64356/22)**, correct? 🙂

Best,

Jousef

---

<div class="post-metadata">

**Author:** ![jhartung](https://www.simscale.com/forum/user_avatar/www.simscale.com/jhartung/32/23768_2.png) [@jhartung](https://www.simscale.com/forum/u/jhartung)\
**Post date:** [March 29, 2019, 10:08pm UTC](https://www.simscale.com/forum/t/mesh-error-or-not/84910/5 "2019-03-29T22:08:16Z")

</div>

Well I no longer had any doubts: I was definitely wrong in that post. 99% sure it was just a scaling problem.
