CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] SnappyHexMesh bad snapping for 2D airfoil

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By maero21

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2013, 05:56
Default SnappyHexMesh bad snapping for 2D airfoil
  #1
New Member
 
Anonymous
Join Date: Aug 2013
Location: Europe
Posts: 24
Rep Power: 13
maero21 is on a distinguished road
Dear CFD-online users,

I have a problem with snappyHexMesh. The castellating all works fine, but when it comes to snapping the cells at the boundary look really strange. I have tried a lot now, but it seems I am overlooking something.

Since it is 2D, I first only castellate the mesh and then extrude it. Subsequently, I snap it and add layers. The RunMesh.sh does all that.

Could you have a look at the case files and tell me what I am doing wrong, because I do not see it anymore?
Link to case files: https://www.dropbox.com/sh/lyi8po231fxnb2k/96Crfo7v_s


Thanks a lot!

P.s. If anyone knows how to easily convert an 2D airfoil with x,y coordinates to an stl file needed for SHM, it would be very much appreciated if you could also tell me that!
Attached Images
File Type: jpg Bad_snap1.jpg (49.8 KB, 109 views)
File Type: jpg Bad_snap2.jpg (50.5 KB, 115 views)
stars_hornet likes this.
maero21 is offline   Reply With Quote

Old   October 6, 2013, 17:58
Default
  #2
Member
 
Miro
Join Date: Jan 2013
Location: Europe
Posts: 51
Rep Power: 13
miro2000 is on a distinguished road
Dear Maero,

Did you check out the dictionary in the plunging wing tutorial?

You don't need 16 cells between layers. It only makes your mesh bigger. Remember, snappy always refines the mesh in 3D.
Increase nSmoothPatch to lets say 6 and then see where that gets you. Increase nRelaxIter to 100.
And remember, snappy runs fine in parallel.
Let me know what happens.

- miro
miro2000 is offline   Reply With Quote

Old   October 12, 2013, 07:20
Default
  #3
New Member
 
Anonymous
Join Date: Aug 2013
Location: Europe
Posts: 24
Rep Power: 13
maero21 is on a distinguished road
Thank you Miro! I knew it had to be some minor adjustment.
It worked like a charm. The 2D case now runs good. I still have to try 3D but that shouldn't be a problem I guess.

Thanks!
maero21 is offline   Reply With Quote

Old   October 14, 2013, 12:43
Default
  #4
New Member
 
Anonymous
Join Date: Aug 2013
Location: Europe
Posts: 24
Rep Power: 13
maero21 is on a distinguished road
Hey,

I still have another question about SHM. When I want to refine the region around the airfoil, I use:
airfoil
{
level (6 9);
}

But if I increase the 9 to 11 for instance to refine around the airfoil, then it takes SHM very long to solve for the mesh (it already takes 10 minutes for (6 9) with 8 processors), because the non-extruded mesh contains more than 10 million cells.

So my question is: Is there any way to refine the mesh around the airfoil without having to extrude a mesh of more than 10 million cells?

Also when I increase the refinement, no layers will be added anymore.

Thanks!

Last edited by maero21; October 14, 2013 at 13:56.
maero21 is offline   Reply With Quote

Old   October 18, 2013, 15:18
Default
  #5
Member
 
Miro
Join Date: Jan 2013
Location: Europe
Posts: 51
Rep Power: 13
miro2000 is on a distinguished road
Quote:
So my question is: Is there any way to refine the mesh around the airfoil without having to extrude a mesh of more than 10 million cells?
I'm not sure what you wanted to say here, but number of cells grows pretty fast.
I'm not sure that no boundary layer is a good idea.
miro2000 is offline   Reply With Quote

Reply

Tags
snapping, snappyhexmesh 2d


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
Ffd_control_point_2d feiyi SU2 4 September 30, 2019 13:42
[snappyHexMesh] bad trailing edge boundary layer with snappyHexMesh draufunddran OpenFOAM Meshing & Mesh Conversion 14 March 1, 2018 10:42
Bad cd at high angles of attack | 2d airfoil koalabryant FLUENT 0 August 18, 2015 08:44
[snappyHexMesh] SnappyHexMesh and Snapping thomasr OpenFOAM Meshing & Mesh Conversion 5 March 15, 2012 12:07
Problems of Duns Codes! Martin J Main CFD Forum 8 August 15, 2003 00:19


All times are GMT -4. The time now is 03:37.