# How do I set Level 0 cell size in Hex-dominant (only for CFD) meshing nowadays? OR where did Base Mesh Box Discretization go to ❓

**URL:** <https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413>\
**Category:** Using SimScale\
**Created:** [January 14, 2020, 5:27pm UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413 "2020-01-14T17:27:56Z")\
**Posts on this page:** 14\
**Page:** 1

<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:** [January 14, 2020, 5:27pm UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/1 "2020-01-14T17:27:56Z")

</div>

Posts will appear below soon…

---

<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:** [October 16, 2019, 7:36pm UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/2 "2019-10-16T19:36:49Z")

</div>

I need to specifically set Level 0 cell size, how do I do this ❓

It appears to me that this is not possible to do any more, it looks like level 0 size is set automatically to 1/4 of the minimum range of the three sizes of the geometry in the three primary axis direction.

This is very bad for CFD verification projects that use a small span airfoil in a large non rectangular BMB (hence the need to use this algorithm because HEX-parametric does not do internal meshes ☹ )

The mesh sizes are ridiculous for these cases… since the far field cell size can not be greater than 1/4 the span.

I want to make a HEX mesh with cell density gradient like this (it is a non rectangular BMB so HEXparametric is not an option…):

 ![BMBsize](https://www.simscale.com/forum/uploads/default/original/3X/5/6/56179da97c065aedfd71f1dfd51228213e7d557f.jpeg)

And all I can get is this (this view is not taken from one of the 3 axis directions… notice how thin it is in the Y direction, hence the VERY fine farfield cells, where I do not want it fine…):

 ![HEXbad](https://www.simscale.com/forum/uploads/default/original/3X/f/2/f2d497d28a80c12412d4c817c8fbf58aabaf0395.jpeg)

So, please give use the ability to specifically set Level 0 cells sizes in Hex-dominant (only for CFD) meshes again…

---

<div class="post-metadata">

**Author:** ![afischer](https://www.simscale.com/forum/user_avatar/www.simscale.com/afischer/32/55410_2.png) [@afischer](https://www.simscale.com/forum/u/afischer)\
**Post date:** [October 17, 2019, 9:40am UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/3 "2019-10-17T09:40:03Z")

</div>

Hi Dale,

we have a feature request for that in our product backlog where I can link your request. Let me add some insights though:

- The hex-dominant mesher did also not all allow to modify the basemesh resolution in the past. It was intended to be an easy to use tool specifically for unexperienced users, hence the level of automation of refinements etc.
- The idea was always to improve/extend this algorithm to in the end make the parametric version of the mesher obsolete and let the user decide on the level of details that he wants to provide, essentially working his way down from full automation to more advanced properties. The first features on this roadmap would be the basemesh resolution as you mentioned and an opt-out of the automatic thin gap refinements that we apply.
- Currently we are focusing our main efforts in meshing onto the new mesh preview, which will become our standard mesher, which leads to these improvements being a bit pushed back
- The parametric mesher can also create internal meshes, you just need to put the point inside of the region of interest. We detect automatically in which region the point is placed and map the entities of CAD and mesh, so it should be even possible to use the CAD-based simulation setup in that case.

As you mentioned that the parametric mesher doesn’t help in your case, could you explain that a bit more or share your project. Maybe I misunderstood sth.

Best Alex

---

<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:** [October 17, 2019, 9:49am UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/4 "2019-10-17T09:49:08Z")

</div>

Sorry, I just assumed from the current help docs that you were previously able to set Level 0 cell size…  
.

> [@](#):
>
> - The parametric mesher can also create internal meshes, you just need to put the point inside of the region of interest. We detect automatically in which region the point is placed and map the entities of CAD and mesh, so it should be even possible to use the CAD-based simulation setup in that case.
> 
> As you mentioned that the parametric mesher doesn’t help in your case, could you explain that a bit more or share your project. Maybe I misunderstood sth.

Aha, if the HEXparametric will do internal meshes, then I am good to go… I guess I should have known that but I wanted to try the simpler algorithm…

I still think the ‘HEX-dominant (only CFD)’ algorithm should let you set Level 0 cell size…

**I just figured out a VERY simple way to do that, just have the the code use the ‘Sizing\>Manual mesh sizing\>Maximum edge length’ as Level 0 cell size, what do you think** ❓

---

<div class="post-metadata">

**Author:** ![afischer](https://www.simscale.com/forum/user_avatar/www.simscale.com/afischer/32/55410_2.png) [@afischer](https://www.simscale.com/forum/u/afischer)\
**Post date:** [October 17, 2019, 9:51am UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/5 "2019-10-17T09:51:11Z")

</div>

Hi Dale,

that works well if you are fine with equilateral basemesh sizing. You can’t adjust x, y, z separately, not sure if you need that in your 2D case.

Best Alex

---

<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:** [October 17, 2019, 9:54am UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/6 "2019-10-17T09:54:04Z")

</div>

But equilateral sizing is preferred in almost all cases, is it not? (I would say ALL, but maybe there is an exception)

And anyways, it has already been decided that equilateral sizing will be used for this simple mesh algo. So the equilateral issue is not relevant as to using Maximum Edge Length as Level 0 cell size …

With the current inability to make oblong cells, using Maximum Edge Length as Level 0 cell size is way better than the non-logical/undocumented approach that is used now…

---

<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:** [October 17, 2019, 10:00am UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/7 "2019-10-17T10:00:47Z")

</div>

> [@On another topic](https://www.simscale.com/forum/forum/t/86586/4):
>
> not sure if you need that in your 2D case.

I am not wanting a 2D mesh, just a thin 3D because I want to verify with the 3D TETforCFD mesh.

I am also trying to use a HEX 3D as another comparison that does verify better than TETforCFD…

---

<div class="post-metadata">

**Author:** ![afischer](https://www.simscale.com/forum/user_avatar/www.simscale.com/afischer/32/55410_2.png) [@afischer](https://www.simscale.com/forum/u/afischer)\
**Post date:** [October 17, 2019, 11:04am UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/8 "2019-10-17T11:04:34Z")

</div>

I see! Would be also interesting if you want to give our new mesher a try or - in case not - why?

All the best for your validation project!

Best Alex

---

<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:** [October 17, 2019, 12:59pm UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/9 "2019-10-17T12:59:46Z")

</div>

LOL, I am using it, I have coined it TETforCFD meshing because ‘new mesh preview’ just does not work for me 😉

---

<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:** [October 17, 2019, 9:06pm UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/10 "2019-10-17T21:06:12Z")

</div>

> [@afischer](#):
>
> The parametric mesher can also create internal meshes, you just need to put the point inside of the region of interest.

I think we do not understand each other because I am having trouble trying to figure out how to use the Hex parametric algorithm on a geometry that already has a curved surface BMB as part of it (see post 1 images, there is NACA0012 airfoil running through that curved BMB, towards the center where the mesh is very fine… ).

[Here is my attempt that only generates a 1 cell mesh](https://www.simscale.com/workbench/?pid=8865627795022065882&mi=spec%3A794c842b-6fb4-4b19-a173-0ac28ee06a26%2Cservice%3AMESHING%2Cstrategy%3A183&sh=25) ;(

I have placed the material point inside the space which the air will flow through.

I assume that the rectangular BMB box would have to at least totally enclose my complete curved BMB geometry, which it does.

Does ANYONE have any idea why I only get a 1 cell mesh (with x0.25m, y0.5m, z0.25m faces, x and z are their Level 0 size and y is 2 times yLevel 0 size) ?

I hope I am not being stupid from lack of sleep here 😉

OR, is what I want to do even possible with HEXpara (my simple google searching did not help).

---

<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:** [January 13, 2020, 3:50pm UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/11 "2020-01-13T15:50:51Z")

</div>

So you don’t have to go to the project and see the problem, [here is the geometry](https://www.simscale.com/workbench/?pid=8865627795022065882&mi=spec%3A6863bfdf-adb2-4940-abf4-31cf85214322%2Cservice%3ASIMULATION%2Cstrategy%3A25&ps=domain) with odd shape BMB as part of the CAD file, designed for internal meshing:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/a/4/a470dc7b38e1b12f9f14e817f340cd78be78012a.png)

.  
.  
And [in this mesh](https://www.simscale.com/workbench/?pid=8865627795022065882&mi=spec%3A794c842b-6fb4-4b19-a173-0ac28ee06a26%2Cservice%3AMESHING%2Cstrategy%3A183&sh=25) attempt, this is the mesh that is created:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/e/5/e5d58f9307bc5ef808be8cb35e64d1678b1864a1.png)  
.  
.  
.

**Which is not the ‘eye’ shape expected ☹**

---

<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:** [January 13, 2020, 6:38pm UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/12 "2020-01-13T18:38:43Z")

</div>

@DaleKramer: by curiosity I did set HEX mesh for parametric simulation on my ‘eye’ shape.

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/2/7/27046d5dc89c9a81c910456360f1f553317fc6dc.png)

I verified first the Material Point (inside the domain)  
I did edit the BMB resolution:

 ![image](https://www.simscale.com/forum/uploads/default/original/3X/f/7/f779ef6573c1ea0aa3c250c5459f7491d4df6abd.png)

I DID NOT touch the BMB size, as it was automatically sized, but I do not think it is critical.

So perhaps your 999 faces of airfoil are causing havoc?

Example is here: [EyeSimulation\_HEX](https://www.simscale.com/workbench/?pid=6414850718207970462&mi=spec%3Adadfbc50-b67d-41ae-a4a0-f5a1ac7e3f6d%2Cservice%3ASIMULATION%2Cstrategy%3A59)

---

<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:** [January 13, 2020, 6:45pm UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/13 "2020-01-13T18:45:25Z")

</div>

Thanks, I will give that theory a try.

I have discovered since that Step file was exported from Rhino, that If I want faces to be combined in the Step file, they have to be extruded from lines that are more than first order (1st order are straight lines)… I have lately been exporting higher order surfaces as Step and I would only have 1 face instead of 999… (but in theory it should do 999 faces too 😉 )…

I have also found a way to nicely group my faces in the step file buy selecting the faces I want in a Step file group and making a Rhino block out of them before the Step is exported…

I will test that soon and report…

---

<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:** [January 14, 2020, 5:38pm UTC](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/14 "2020-01-14T17:38:36Z")

</div>

Although the answer to to post topic was in [Post 3](https://www.simscale.com/forum/t/how-do-i-set-level-0-cell-size-in-hex-dominant-only-for-cfd-meshing-nowadays-or-where-did-base-mesh-box-discretization-go-to/87413/3) (the answer is ‘You can’t set Level 0 size of a Hex-dominant mesh, although it is on the feature request list’)

I was able to get my mesh to work using a Hex parametric mesh to appear as you see below:

**I will leave it to the coders and mathematicians to figure out why [this Feature Trick](https://www.simscale.com/forum/t/what-to-do-if-geometry-does-not-appear-in-your-mesh-try-the-feature-trick/87330/6) made my ‘eye’ shaped BMB and geometry appear, but it did…**
