CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Help on structured mesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2023, 13:19
Default Help on structured mesh
  #1
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
Hi all,

I am trying to make a structured mesh for an oval-shaped body. So far it looks good (attachment 1), but only if the oval has a certain angle. If I change the angle a few degrees the structure is still there, but it results in highly skewed elements (attachment 2). After a certain angle the kind of structure I want is no longer there (attachment 3).

Does anyone have some tips on how to keep the structure I want? Can I add some guidelines like the red line in attachment 4 without splitting the green edge? I tried splitting the body into two using the red line, but the green edge should remain one edge since I use Edge Sizing with a certain number of divisions there.

Thanks!
Attached Images
File Type: jpg A1.jpg (197.9 KB, 11 views)
File Type: jpg A2.jpg (147.6 KB, 12 views)
File Type: jpg A3.jpg (168.2 KB, 12 views)
File Type: jpg A4.jpg (148.7 KB, 13 views)
jaxk is offline   Reply With Quote

Old   October 11, 2023, 14:11
Default
  #2
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
I added an attachment to give some insight in the meshing tools I used.
Attached Images
File Type: jpg IMG-20231011-WA0003.jpg (76.0 KB, 15 views)
jaxk is offline   Reply With Quote

Old   October 11, 2023, 17:44
Default
  #3
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
In the end I'll go with something like this (attachment r2).

Another problem I have now: the curve is not really round (attachment r3). Does anyone know how that can be fixed? Setting Capture Curvature to yes, with a small angle doesn't work...
Attached Images
File Type: jpg r2.jpg (170.0 KB, 11 views)
File Type: png r3.PNG (104.1 KB, 10 views)
jaxk is offline   Reply With Quote

Old   October 11, 2023, 18:42
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,841
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
What are you trying to do with this analysis? What physics are you modelling? Have you done a mesh sensitivity study to work out what size mesh you need for the accuracy you want?

You need answers to those 3 questions to determine what mesh is required for your model.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   October 12, 2023, 14:06
Default
  #5
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
Yes, I will do a mesh sensitivity analysis, but I do need a working mesh structure first I believe. I will measure the drag and torque coefficient depending on the angle of the blade, at high reynolds number (Re= 1e6). A 2D approximation at Steady state. And possibly transient and/or a longer z-distance if that gives other values.
jaxk is offline   Reply With Quote

Old   October 12, 2023, 18:26
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,841
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Yes, you do need a working mesh for a mesh sensitivity analysis. But you should only need to do this at one angle of attack, so you do not have to make it work over a range of AOAs.

Also - What are you trying to do with this analysis? What physics are you modelling?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   October 13, 2023, 06:18
Default
  #7
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
Thanks for the reply. I intended to do the mesh sensitivity analysis at one angle, I chose 90 degrees, so vertical. But then even a super coarse mesh resulted in the expected drag coefficient and torque coefficient (0). However, with that mesh at an AoA of 15 degrees, it resulted in very different torque coefficients compared to a finer mesh. So now I intend to do the mesh sensitivity analysis at 15 degrees only. (I chose 15 since I expect a peak in torque coefficient there, but I think another angle could work as well, apart from 0 (horizontal) or 90 degrees).

I'm analyzing water flowing around a blade at high Reynolds number, and want to see how the torque coefficient and drag coefficient change with the AoA of a blade.

I am using an SST turbulence model with 5% turbulence.

To find the influence of the Reynolds number, I will also so a run with 1e4, 1e5, 1e7 to see if that changes the results.
To find the influence of the turbulence on the results, I will also do a run with 2,5% and 10% turbulence.

I hope that answers your question and allows you to give me more feedback, which is very much appreciated!
jaxk is offline   Reply With Quote

Old   October 13, 2023, 06:36
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,841
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Thanks, yes that explains what you are doing.

I would:
* Put a large inflation from the body, starting with y+ = ~1 and with a gentle expansion ration, 1.1 or 1.05 even better. Go at least 8 elements out, but around 20 would be better.
* I would forget all the blocking you have done as I think the poor orthogonality is going to cause problems.
* Put a block in the area you expect the wake if you want to capture the wake accurately.
* And everything else just mesh with a hex or tri paver mesh.

If this is a steady state run you can use a big mesh as it will still converge quickly. You might need to be more careful with your mesh settings for transient simulations to keep it realistic. So do the mesh sensitivity on a steady state run and work out exactly what mesh you need before you start the transient simulations.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   October 13, 2023, 07:42
Default
  #9
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
Is this the kind of mesh structure you propose, using fine hexahedrons within the block?
I have been using the 4 diagonals to get a structured mesh with fine elements near the blade and a more coarse mesh away from the blade.

I have been using the kind of inflation layer you mention, with 20 layers, and a y+ of ~1.

In which region do you expect poor orthogonality that could cause problems?
Attached Images
File Type: jpg q1.jpg (121.9 KB, 13 views)
jaxk is offline   Reply With Quote

Old   October 13, 2023, 11:11
Default
  #10
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
Or more something like this, which is less structured
Attached Images
File Type: jpg w1.jpg (196.1 KB, 11 views)
jaxk is offline   Reply With Quote

Old   October 13, 2023, 22:18
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,841
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The less structured mesh looks much better to me. Almost much easier to generate, and should be able to handle big changes in AOA with no problems. I would do the mesh sensitivity study on that approach.
jaxk likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   October 15, 2023, 12:07
Default
  #12
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
Have you ever come across this behavior near the inflation layer with a 2D approximation? The sweep method doesn't project exactly along the z-axis. As a result, the first layer thickness isn't everywhere the same.
Attached Images
File Type: jpg q3.jpg (174.3 KB, 11 views)
File Type: png q4.PNG (122.9 KB, 9 views)
jaxk is offline   Reply With Quote

Old   October 15, 2023, 14:37
Default
  #13
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
I solved it by using 'Automatic Thin' within the Sweep Method, instead of 'Manual Source and Target'.
Somehow that also results in a more structured mesh overall.

However, the inflation layer is not possible with this approach...
jaxk is offline   Reply With Quote

Old   October 15, 2023, 18:31
Default
  #14
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,841
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You will just have to try things to try to work it out. I find ANSYS Mesher a frustrating mesher as it does unexpected things (like this).

I would check your geometry, the faceting I can see means that there might be something happening there.

Also, you have a big jump in mesh element sizing from the end of your inflation to the bulk mesh. It is better to keep growing your inflation mesh until it reaches the same size as the bulk mesh and you then get a nice even transition. So I would put more layers in your inflation mesh.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Structured and unstructured mesh in ICEM Weiqiang Liu ANSYS Meshing & Geometry 4 May 13, 2020 11:37
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
[ICEM] Unstructure Meshing Around Imported Plot3D Structured Mesh ICEM kawamatt2 ANSYS Meshing & Geometry 17 December 20, 2011 12:45
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 10:38


All times are GMT -4. The time now is 19:08.