Boundary Layer Does Not Form - Except When Default Settings Used

Thanks once again.

I went back to default BL settings and this time, the BL don’t form anymore.


I guess I will have to reset other settings and start again since it is not clear what cause it to fail now when it worked before.

Some questions that maybe you can shed some light on:

This type of warning started coming up after I made the changes as per previous discussion and I am not sure what it is referring to:

–> FOAM Warning :

From function void Foam::snappySnapDriver::calcNearestFace(Foam::label, const indirectPrimitivePatch&, const scalarField&, Foam::vectorField&, Foam::vectorField&, Foam::labelList&) const

in file snappyHexMeshDriver/snappySnapDriverFeature.C at line 335

Did not find surface near face centre (-0.0271464054501 0.205854351465 0.0196291287719)

On closer inspection, my leading edge (LE) and trailing edge (TE) are not looking good. I am not sure how to control it here since I am also using a “free” Autodesk Fusion360, as opposed to before when I would split separate surfaces in Solidworks before assigning them as separate surfaces in STARCCM+. Besides making it do more surface refinement, what else should I do? Would the feature refinement help the TE?


I am trying to take an incremental approach (eg. get surface mesh correct, slowly refine BL and volume mesh) but it seems like I am not sure how to lay the foundations and proceed stepwise. Again, appreciate if you have any rules of thumb.

**Update: An attempt at a finer mesh didn’t quite work out - ran out of memory and I am at the 16 processors limit for the free plan. Not sure if I will get to the resolution required for such a sim.

Weisheng

Hey guys!

I think @DaleKramer had this issue once, can you maybe help Weisheng here? Will have a closer look at the project this evening.

Cheers,

Jousef

Thanks.

Might have found the problem. I went back to the time when I have not created the MRF volume, which I then created to be fairly snug around the propeller. However, I am not sure if it is too snug so I removed it and was able to generate BL down to the size I actually need.

Right now uploading a new CAD with a looser MRF volume and will mesh that tomorrow.

I am not sure if these suggestions will help you but here is a post that documents a method I used to layer just about anything :wink:

Thanks alot! Will read through in detail…

By the way, after loosening the MRF volume, it didn’t help my BLs to form.

@cweisheng

The below comments are with respect to the current ‘Latest-060319’ simulation and its geometry.

As far as your trailing edge goes, I do not think you have refined it enough, but also I do not think that is the complete problem here.

Here is my discussion on the TE refinement (and LE).

To start, I see this (z direction only for now):

The z range of Background Mesh Box (BMB) is 2.2m. In your meshing parameters you have chosen split your Level 0 z range into 58 faces. That is 2.2/58 = 0.0379 m. By the way, I always make my Level 0 faces 1.28m square on all axis (that makes a very nice level/facesize table). If you really want to start finer, make sure the level 0 face size is some large power of 2, in your case if you want to stay close to what you have, try Level 0 at 0.0512m (you will start to commit levels sizes to memory at that point) .

So here are your z face sizes at various levels:

level z face size (m)
0 0.03790000
1 0.01895000
2 0.00947500
3 0.00473750
4 0.00236875
5 0.00118438
6 0.00059219
7 0.00029609
8 0.00014805
9 0.00007402
10 0.00003701
11 0.00001851
12 0.00000925
13 0.00000463
14 0.00000231

I see that your trailing edge is about 0.00001 m thick at the tip. You have only refined all prop surfaces as level 6 to 7 (0.00002961 m). So you won’t see any trailing edge faces in the mesh.

If you want faces on the TE this means you should put a surface refinement of level 12 or 13 on the trailing edge faces if you want to get some cells on the TE.

Similarly, your tip chord is only about 0.005m and you need the prop surface refinement to go from level 6 to 12 (or 13) to get some cells around the LE radius.

BUT as for the real problem:

For some reason you are losing your prop geometry completely in the mesh, so, when it is time to layer, there is nothing to layer.

I would try fixing your surface refinements to take into account my above comments and then meshing and layering with just the BMB and the prop to start with. Add the other refinement cylinders later.

Then we will go from there…

Also, I rarely use feature refinements…

Note. Here is a similar project to yours and you might find clues there…

@Filiptheking

Hi, I was pointed to your project and decided to follow exactly what you did. I am not that concerned about the simulation results now but would rather demonstrate (to myself) that I can form the boundary layers. Have done many such validations in STARCCM+ before but unfortunately have had no experience in OpenFOAM.

I used the mesh settings in your project (J:0.174-Level 3 mesh). Although my propeller diameter is larger than yours, if I understand it correctly, the mesh size reference uses that of the Background Mesh Box as Level 0.
This is yours:


This is mine:

Level 0 looks right to me.

I then used the same settings found in your refinements:

  • Blade refinement to Level 9 (I used Level 9 for all surfaces although you have another at Level 8)
  • Region refinement of rotation zone at Level 4
  • Inflate boundary layer (8 layers, 1.4 expansion, 0.00008328) - i am just trying to see if BL can form on my simulation, I know my y+ should be different from yours
  • Rotation Zone surface refinement at Level 4 (Inside Cell Zone)
  • Region Wake refinement at Level 2 (inside)

However, it is immediately clear that something is wrong. My surface mesh is nowhere as small as yours even though we have the same background mesh box size and resolution, and same surface refinement levels.
This is yours:


This is mine:

Can anyone help to explain this? I don’t understand what has gone wrong and have tried many suggestions by other members. I am beginning to wonder if its a matter of my CAD or if somehow my free account has limitations?:sweat_smile:

Some comparisons for proof:
Your Background Mesh Box:


My Background Mesh Box:

Your Blade Refinement:


My Blade Refinement:

I will try to change the settings for a finer mesh but I am on the free plan so I am not sure if the machines have sufficient memory to do that. But I will try.

Hi @cweisheng and thanks for the detailed investigations, quite interesting :slight_smile:

If you have any trouble running the meshing process you can simply tag me here and I will run the mesh for you to see what parameters we have to change in order to get some decent results for some first runs.

Let us know how things go!

Jousef

@jousefm

How do I take up your offer?

My further explorations with meshing parameters did not yield improvements. One more thing I can try (tonight when I can access CAD) is probably to output geometry as a fine-res STL file? Currently I have tried both .iges and .step:

  • Attempt to force further surface refinement --> didn’t look like it worked and why not!!!

  • Playing with snap control settings, just in case --> didn’t look like it did much

Hi @cweisheng!

You can share the project with me and I will give it a spin later on - letting you know what you could adapt.

Best,

Jousef

@jousefm

Hi, thanks, have shared it with you although it was public before already. Thanks in advance!

My free Autodesk Fusion 360 has no option to output as STL so I tried some other formats like SMT, SAT… didn’t work.

I tried IGES again - didn’t work (when I adopted @Filiptheking 's settings, I also used STEP like he did)

I tried with IGES but for the Surface Refinement selection, rather than selecting “faces”, I selected the whole Propeller “solid” - didn’t work.

Not much point to show graphics here because they are the same as before - where the surface mesh of the propeller is not even well formed.

Hi @cweisheng

I will take a look at your project today and will come back with a suitable solution as soon as possible.

Thanks
Ani

1 Like

Hi @cweisheng
I just copied your project and meshed the geometry using just the surface refinement on the blade surface with the extreme value of refinement as 3 to 4 and this was the result-

I think that you should try preparing the mesh from the scratch and instead of just blindly following the values used in the tutorial you should spend more time playing with different mesh features and refinement level to have a better understanding of what role each parameter plays. This will also prepare you in deciding the regions where you should add more cells and ignore the other regions. Refinement level of 9 and that too in your 1st simulation is totally unnecessary, as you should try to simulate first with a coarse mesh and then perform a mesh independence study which will give you a feel that now your current mesh level is sufficient for this problem and there is no need in further increasing the mesh quality.

By the way I also made another mesh with surface refinement on the blade surface with the extreme value of refinement as 4 to 5 and this was the result-

If you have any kind of doubt, I am always there to help you. :slightly_smiling_face:

Thanks
Ani

2 Likes

Just for interest sake, what Level 0 grid size did you use on his ~1m cube Background Mesh Box. (It was a good idea to start over :wink: )

Dale

Thanks.

Actually I started the way you recommended - to go with a coarse mesh first. But it wasn’t quite working out as you saw earlier on in the post, that’s why I switched to following somebody who has already done it.

I will see if I can generate the same mesh as you with your settings. But shouldn’t it also generate a fine mesh even though Level 9 is an over-kill?

@anirudh2821998 Can you share the copied project? I want to do exactly like you did so that I know the mesh can form for me.

Refinement Level 3-4

Hi @cweisheng!

Level 9 might not even be necessary and even 6-7 could be an overkill depending on how the convergence study looks like. What you look for is a quantifiable physical property like lift and see how this is affected for different meshes (as you would do in a FE analysis) and see that it would saturate at a certain level so any increase in refinement levels would not give you an added value.

Best,

Jousef

1 Like

Yes… I do know that.

So in that case, the mesh will not form? I didn’t even get a large mesh. I would think the fine mesh will still form even if it was an overkill, no?

1 Like

Hi @cweisheng,

Let me copy your project over on the weekend and see if I can resolve anything.

Just to confirm your final objective is to generate a y+ <1 layer? I cannot guarantee 100% layering but if its around 90% or so would you say that is acceptable?

I might try other meshers like cfMesh that may be able to actually reach 100% layer generation.

Also have you explored other meshers like the ones on Ansys? They seem more robust in exchange for less room for tuning of the parameters.

Cheers.

Regards,
Barry