Boundary Layer Does Not Form - Except When Default Settings Used

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

Hi all (@DaleKramer, @jousefm, @anirudh2821998, @Get_Barried)

Thanks for all your time looking at this. Maybe let me just recap the journey so far…

  1. Initial approach was the normal CFD approach - try a coarse mesh, get a good surface mesh before talking about boundary layer and Y+…
    Result: At various times, I was able to get the surface mesh fine but the BL just refuses to form. As per my previous CFD experiences, I wanted to do a Y+ of 1 for this simulation but because it refused to form, I literally tried from the default settings and slowly made it finer. The default settings formed fine sometimes but otherwise, never. Alot of the advice was on refining things here and there, which I do get but I was trying to balance with the approach of taking things slow. Eventually, I exhausted these explorations.
  2. Then, I think someone pointed me to the validation done by FliliptheKing. So sure, since it’s already a validation, I thought I would just copy the settings. As stated in a previous post, the idea was not to get to accurate simulation results but it’s more of checking if someone else’s settings would work for mine with as many things similar as possible (except propeller geometry).
    Result: Using these settings, the surface mesh doesn’t even form right now. I have not even looked at the Boundary Layer. This is where all your current suggestions come in.

So, I am just at the stage of trying to generate the first, decent mesh. Originally, the goal was decent mesh with boundary layer. However, now that the surface mesh is not doing well… I really don’t have a base to work off. If you look at the simulation file now, the boundary layer settings are also copied since it really is not a matter of whether I’m generating the right mesh for simulation accuracy, at the moment.

**I might be making some really silly mistake in my setup - If it’s because of my silly mistake, I really hope to find it tonight or if one of you can straight away point it out in my settings? Otherwise, the question really staring at me is why isn’t the surface mesh even forming properly? Even if I am over-killing it with the refinement levels, it ought to give me a really fine mesh or tell me i have run out of memory - so I think this needs answering. **

I have not tried other meshing software but will do so soon although I do need one with a GUI.

Hopefully that clarifies that I am not just merely copying another case file. Thanks.

2 Likes

Hi @cweisheng
This geometry was not successfully meshed by you because of the following reasons-

  1. The base mesh size will determine the size of your other component as

Size of the Refined mesh = Base mesh size/(2^n), where n is your refinement level

Here your box(which is about 1m X 1m X 1m) is meshed with 26 cells in x,y and z direction, which means your base mesh(ZERO REFINEMENT CELL) size of one cell will be 1m/26=0.038m(3.8cm/38mm).

  1. This geometry contains a fan which has an edge thickness of just 0.1mm. So, in order to retain the geometrical features you would have to give a very high refinement level(using the formula given above) and it is because of the same reason that you are getting a mesh of very bad quality at a refinement level of 3-4(because your base mesh size is very large so this level of refinement won’t produce the desired mesh)
  1. I got a good mesh at a refinement level of 3-4, because I used around 150 cells in each direction, but the problem here is that it will generate a lot of cells which will increase the time of your simulation.
    There is another solution to this problem which you can give a try. As smaller mesh size is required in the z-dirn(as the fan’s edge is in that direction) you can try giving the value of cells in x&y dirn around 40 and increase the number of cells in z-dirn( keep 150 as your upper limit).

My mesh with 150 elements in each dirn-



If you have any doubt in any of the above mentioned points, do clarify it with me.

Thanks
Ani

2 Likes

Hello Sir

I used around 150 cells in each dirn, but later realized that such a small mesh size in x&y dirn is not necessary and I should focus on reducing the size of mesh only in z-dirn.

Thanks
Ani

Thanks @anirudh2821998

I see that you used a pretty fine mesh for the flow volume. Actually the purpose of starting with a coarse global mesh is a cell size management strategy where you make use of volume refinement only where you need it eg. within 2 prop diameters in the wake. That was already in place, and that’s why the refinement levels are high. In the end, it should have worked out to be similar to yours…

1.6m is the box dimension --> at 150 cells --> at level 4, you are probably at 0.0006m
1.6m is the box dimension --> at 26 cells --> at level 9, it was 0.0001m

So the surface mesh is definitely fine enough. Perhaps the rotation zone mesh that I followed from Filiptheking is not. But I didn’t expect that the volume resolution needs to go as fine as the surface resolution since the main aim of the surface resolution is to capture the geometry while the volume resolution is about flow phenomena?

Again, are you able to share the file so I can just take a look at your settings?

Sorry man I just forgot to share the project with you. I will send you the project link asap.

Ani

@jousefm

May I get some response from SimScale regarding

  1. Why wouldn’t the fine mesh (as defined by the Blade Refinement Level 9) form on the blade surface? This is in conjunction with the Region Refinement to the Rotation Zone at Level 4.
  2. If it works on the geometry in the case used by FiliptheKing, shouldn’t it “work” here since everything else is the same except the blade geometry?

Let me know if I should be asking these elsewhere.

As I understand in CFD, you have a simulation volume that is large, and you don’t necessarily want to fine-grid the whole volume like one of the suggestions here. So, it is right that the Region Refinement is used where the fine cells are needed while the Surface Refinement is used to control the fidelity of meshing the geometry.

I repeat the settings used again:

  • 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)

Thanks, appreciate it.

1 Like

Hi @cweisheng!

Will investigate this in the evening and see what the problem with the refinement is.

Cheers,

Jousef

Hi @cweisheng

I told you to try making a mesh with 40 elements in x&y dirn. and with less than 150 elements in z-dirn. Have you given it a try??
I have made a mesh for you with 40 elements in x&y dirn and 70 elements in z-dirn and here are the results-

fan%20mesh%20stats

Thesurface refinement of 5-6 was used for the fan and it took around 19 minutes to make this mesh.

I had already told you that 150 elements in each dirn was not necessary and you should try to make the mesh yourself with these values-

If you want this new mesh I can send it to you. If you have any kind of doubt, I am always there to help you. :slightly_smiling_face:

Thanks
Ani

Have you tried copying the Filiptheking project and re-meshing it with exactly the same parameters, just a thought (maybe something has changed with all the problems we run into lately) and sorry I am off for the day soon to a Bob Seger final tour concert or I would try that :wink:

Yeah sure, I will do that. Thanks, hope you enjoyed the concert.

Alright, copying and remeshing does seem to work using FiliptheKing’s geometry:

1 Like

Concert was great!

Well, that result is a small step forward :slight_smile:

The problem with the surface mesh has been resolved (for now). After I added in a "Feature Refinement (Distance 0, Level 9), the mesh size became alot bigger and the surface mesh finally generated to expectation.

When I first started with SimScale (about 3 weeks back), I followed recommendations to use feature refinement… but because of the boundary layer problem, I switched to following FiliptheKing’s setup which did not use one.

Any definitive rule of thumb on when/when not to use feature refinement?

However, I am not able to look at the BL here cos the mesh clipping is crashing (probably due to large mesh). Any recommendations on this - how to avoid it crashing? Is there an external viewer of the mesh I can use?

So I had to reduce some of the fineness levels (namely, level 4 to 8 rather than 9):

Phew. BLs form now though not great but at least finally some starting point. Alright, finally, moving on to the next stage. Thanks all but I am sure I might need more help ahead.

1 Like