# Very thin boundary layers and y+ on complex geometry

**URL:** <https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943>\
**Category:** CAD & Meshing\
**Created:** [April 2, 2019, 3:25pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943 "2019-04-02T15:25:15Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![DaleKramer](https://www.simscale.com/forum/user_avatar/www.simscale.com/dalekramer/32/20201_2.png) [@DaleKramer](https://www.simscale.com/forum/u/DaleKramer)\
**Post date:** [April 10, 2019, 5:11pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/63 "2019-04-10T17:11:28Z")

</div>

Let me have a look.

I don’t see the meshing log for a 12 layer level 12 attempt in your current state of the project…

---

<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:** [April 10, 2019, 5:22pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/64 "2019-04-10T17:22:22Z")

</div>

I’ll see if I can recreate… I was going rapid fire last night.

Also, I edited [my previous post](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/27) with some results from extending the simulation time of the “Kramer mesh”. Significantly different forces/moments but now very similar flow field.

**EDIT**  
Okay @DaleKramer, it’s recreated. You’ll see it under CAC Deflected.

---

<div class="post-metadata">

**Author:** ![DaleKramer](https://www.simscale.com/forum/user_avatar/www.simscale.com/dalekramer/32/20201_2.png) [@DaleKramer](https://www.simscale.com/forum/u/DaleKramer)\
**Post date:** [April 10, 2019, 5:44pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/65 "2019-04-10T17:44:20Z")

</div>

So (from your meshing log), here is where all your layers just disappeared:

 ![12layersdisappear](https://www.simscale.com/forum/uploads/default/original/3X/4/0/40a9ed88de4386ba67c89f1e6ffe10a9f822886c.jpeg)

You will get the most back by relaxing ‘faces on cells with determinant \< 1e-06’, but the rest disappeared for a lot of other reasons as you can see…

---

<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:** [April 10, 2019, 5:46pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/66 "2019-04-10T17:46:09Z")

</div>

Ugh I completely missed that last night somehow… thanks.

---

<div class="post-metadata">

**Author:** ![DaleKramer](https://www.simscale.com/forum/user_avatar/www.simscale.com/dalekramer/32/20201_2.png) [@DaleKramer](https://www.simscale.com/forum/u/DaleKramer)\
**Post date:** [April 10, 2019, 5:48pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/67 "2019-04-10T17:48:52Z")

</div>

I just followed [my procedure from here](https://www.simscale.com/forum/t/layering-for-yplus-of-less-than-1/83022/12) 😉

---

<div class="post-metadata">

**Author:** ![DaleKramer](https://www.simscale.com/forum/user_avatar/www.simscale.com/dalekramer/32/20201_2.png) [@DaleKramer](https://www.simscale.com/forum/u/DaleKramer)\
**Post date:** [April 10, 2019, 5:57pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/68 "2019-04-10T17:57:38Z")

</div>

> [@jhartung](#):
>
> Also, I edited [my previous post](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/27) with some results from extending the simulation time of the “Kramer mesh”. Significantly different forces/moments but now very similar flow field.

To me, I still do not think you are anywhere near converged at 500 steps, I would extend that a few hundred iterations yet or maybe the moments will never stabilize for a reason I am unsure of at the moment…

---

<div class="post-metadata">

**Author:** ![DaleKramer](https://www.simscale.com/forum/user_avatar/www.simscale.com/dalekramer/32/20201_2.png) [@DaleKramer](https://www.simscale.com/forum/u/DaleKramer)\
**Post date:** [April 10, 2019, 6:17pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/69 "2019-04-10T18:17:24Z")

</div>

> [@jhartung](#):
>
> Ugh I completely missed that last night somehow… thanks.

I see you just relaxed to 1e-08 on determinant yet still have no layers left.

I am thinking it may be related to min cell volume, I think I made notes on that in procedure too…

I think there are other things I point to in the procedure that might be relevant.

---

<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:** [April 10, 2019, 6:18pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/70 "2019-04-10T18:18:29Z")

</div>

Yes, trying again with the face interpolation 10x lower. Min cell volume is already at 1E-30.

---

<div class="post-metadata">

**Author:** ![DaleKramer](https://www.simscale.com/forum/user_avatar/www.simscale.com/dalekramer/32/20201_2.png) [@DaleKramer](https://www.simscale.com/forum/u/DaleKramer)\
**Post date:** [April 10, 2019, 6:21pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/71 "2019-04-10T18:21:33Z")

</div>

Maybe it is related to that fact that you have left your surface refinement at level 6, perhaps you should ‘do the numbers’ and update that first…

---

<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:** [April 10, 2019, 6:24pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/72 "2019-04-10T18:24:30Z")

</div>

I’ve left it there intentionally, as the numbers in your method dictate a refinement level of 12 which runs 32 cores out of memory immediately. I was hoping that absolute layering would help allow this.

I’ve even fudged down to surface refinement of 9 and still ran out of memory…

---

<div class="post-metadata">

**Author:** ![DaleKramer](https://www.simscale.com/forum/user_avatar/www.simscale.com/dalekramer/32/20201_2.png) [@DaleKramer](https://www.simscale.com/forum/u/DaleKramer)\
**Post date:** [April 10, 2019, 6:25pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/73 "2019-04-10T18:25:17Z")

</div>

Aw, sorry did not see absolute. You are a bit on your own for now…

Prism layers blending across so many levels to the volume mesh will likely fail is my uneducated prediction…

---

<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:** [April 10, 2019, 6:28pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/74 "2019-04-10T18:28:56Z")

</div>

Bizarre, I’ve eliminated most of the faces in error but it still deletes them all.

 ![43%20AM](https://www.simscale.com/forum/uploads/default/original/3X/9/7/97d828f9498588ea17d789ed10017eb5f9a03bd3.png)

---

<div class="post-metadata">

**Author:** ![DaleKramer](https://www.simscale.com/forum/user_avatar/www.simscale.com/dalekramer/32/20201_2.png) [@DaleKramer](https://www.simscale.com/forum/u/DaleKramer)\
**Post date:** [April 10, 2019, 6:33pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/75 "2019-04-10T18:33:57Z")

</div>

I really think it is the blending issue. I have easily made 15 layers in that topic (and 30 layers elsewhere). I will find some time to look at this deeper if you have not figured it out soon. Perhaps try the level 12 surface without layering and then add just a Y+\<1 layering on a few surfaces for now to isolate the issue etc.

EDIT:

I am a little confused, when I ‘run the numbers’ for Y+=1 I get this:

 ![Thrust12layersY%201](https://www.simscale.com/forum/uploads/default/original/3X/6/5/653ef6281782b7c232d27c503f83bce49bcaba7b.jpeg)

Which says I get an OK 0.24 FLT ratio needed at Level 8 surface refinement.

How did you come up with Level 12?

---

<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:** [April 10, 2019, 7:29pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/76 "2019-04-10T19:29:45Z")

</div>

I was using Y+=0.5. Here’s my current run. Keeping surface at 6 with 12 layers and 1.85 expansion. FLTR ends up at 0.31. Reduced my determinant and kept about 2 layers, so getting closer!

 ![48%20PM](https://www.simscale.com/forum/uploads/default/original/3X/c/8/c86c69147915ccc8146137403ccecdbc324e69e3.png)

---

<div class="post-metadata">

**Author:** ![DaleKramer](https://www.simscale.com/forum/user_avatar/www.simscale.com/dalekramer/32/20201_2.png) [@DaleKramer](https://www.simscale.com/forum/u/DaleKramer)\
**Post date:** [April 10, 2019, 7:38pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/77 "2019-04-10T19:38:10Z")

</div>

OK, it looks like surface level 12 was never in the mix.  
You are way ahead of me but lets see if we end up near the same place 🙂

---

<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:** [April 10, 2019, 7:40pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/78 "2019-04-10T19:40:37Z")

</div>

Hah! I’ve got one trick and I learned it from you 🐎

---

<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:** [April 11, 2019, 3:18pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/79 "2019-04-11T15:18:07Z")

</div>

Okay @DaleKramer, I’ve gotten to a reasonable BL by relaxing the determinant, decreasing min volume, and increasing the various smoothing iterations. It’s a bit of a cat-and-mouse game though, because as soon as you relax some quality checks, you get quality issues on other areas such as face twist. Would you mind checking [this mesh](https://www.simscale.com/workbench/?pid=6869950879105363263&rru=1537c197-c6d0-49f4-8f21-46a24e0d4324&sh=4&ci=8c64bb40-bbdd-4714-a8f4-1f6134d0ba6c&ct=UNSTRUCTURED_LOG&mt=SIMULATION_RESULT) out and offering suggestions?

_EDIT_  
Never mind, simulation took 140 minutes to get 45 time steps and forces are in an unstable oscillation with no convergence. 🤦‍♂️

---

<div class="post-metadata">

**Author:** ![DaleKramer](https://www.simscale.com/forum/user_avatar/www.simscale.com/dalekramer/32/20201_2.png) [@DaleKramer](https://www.simscale.com/forum/u/DaleKramer)\
**Post date:** [April 11, 2019, 5:46pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/80 "2019-04-11T17:46:15Z")

</div>

In your cat-mouse iterations, you can save many core hours if you work with smaller geometry model, say, just the fin and rudder for surface and BL refinements until you nail it, then do it to whole geometry.

---

<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:** [April 12, 2019, 2:22pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/81 "2019-04-12T14:22:49Z")

</div>

Okay quick update: got a successful mesh with pretty good BL coverage by iterating with some smaller geometry. You can see it [here](https://www.simscale.com/workbench/?pid=6869950879105363263&mi=spec%3A0d952844-b287-4377-8e73-b9f992fdb6eb%2Cservice%3AMESHING%2Cstrategy%3A104&sh=4). As we discussed, it’s just a matter of relaxing quality controls enough to keep the BL but not too much that you’ll fail the quality checks.

Unfortunately, it’s 25MM cells so I’m unable to run a simulation on it without running out of memory. I’m just so very curious how much this will differ from the wall function ones. 😫

Also, at least on Firefox, this size of mesh seems to break the viewer. You can no longer rotate or select anything.

---

<div class="post-metadata">

**Author:** ![DaleKramer](https://www.simscale.com/forum/user_avatar/www.simscale.com/dalekramer/32/20201_2.png) [@DaleKramer](https://www.simscale.com/forum/u/DaleKramer)\
**Post date:** [April 12, 2019, 2:56pm UTC](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943/82 "2019-04-12T14:56:10Z")

</div>

Great, please leave that mesh/sim setup alone until I copy project and then I will decide if I should run it with my ‘power’ for you 😉

[Previous page](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943.md?page=3)

[Next page](https://www.simscale.com/forum/t/very-thin-boundary-layers-and-y-on-complex-geometry/84943.md?page=5)
