CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Force SnappyHexMesh to match the surface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2020, 05:23
Default Force SnappyHexMesh to match the surface
  #1
Member
 
Ilan
Join Date: Dec 2018
Posts: 52
Rep Power: 7
Magistrane is on a distinguished road
Hello Foamers !

Here is a part of a mesh I am working on.

As you can see, the leading edge is not refine as told.
The rest is fine even with supplementary layers.
I forced the minRefinementCells to a huge number to see if it changes anything. It didn't :

minRefinementCells 500;
refinementSurfaces
{
wing_p1
{
// Surface-wise min and max refinement level
level (8 8);
}

}

Do someone have any idea to correctly mesh this surface ?
Thank you, have a great day !

Magi
Attached Images
File Type: png Pale.png (56.6 KB, 19 views)
File Type: png Maillage.png (192.8 KB, 21 views)
Magistrane is offline   Reply With Quote

Old   September 29, 2020, 05:50
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

If you have a high value of minRefinementCells, then snappy will stop refining your mesh if the number of cells to be refined are below the minRefinementCells number.

So if you want snappy to mesh more, then you will need to make minRefinementCells smaller.

Also, have you tried using featureEdges to capture the leading edge to your satisfaction?

Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   September 30, 2020, 05:39
Default
  #3
Member
 
Ilan
Join Date: Dec 2018
Posts: 52
Rep Power: 7
Magistrane is on a distinguished road
I reduced the number, it changed nothing.
I was already using the SurfaceFeatureExtract in my meshing but the angle was set to 150°. I pushed it to 179° and remeshed. The meshing is perfect now.
Thanks Antimony!
Cheers
Magistrane is offline   Reply With Quote

Reply


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
[Gmsh] gmshToFoam generates patches with 0 faces and 0 points Simurgh OpenFOAM Meshing & Mesh Conversion 4 August 25, 2023 07:58
[snappyHexMesh] Doubts regarding the use of snappyHexMesh for multiregion meshing Shibi OpenFOAM Meshing & Mesh Conversion 4 October 22, 2021 11:38
How to convert the surface force to volume force on the interface in VOF model? aestas Fluent UDF and Scheme Programming 4 March 23, 2021 21:13
VOF +surface tension force modeling+ open channel flow+cyclic region= fatal error? SJSW Fluent Multiphase 2 November 18, 2014 04:15
[Gmsh] boundaries with gmshToFoam‏ ouafa OpenFOAM Meshing & Mesh Conversion 7 May 21, 2010 12:43


All times are GMT -4. The time now is 00:51.