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

[snappyHexMesh] Mesh quality decreases with the addition of boundary layers (Edges refinement)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2022, 11:21
Default Mesh quality decreases with the addition of boundary layers (Edges refinement)
  #1
New Member
 
Join Date: Feb 2021
Posts: 3
Rep Power: 5
paulvrs is on a distinguished road
Dear fellow foamers,

I was wondering whether someone has an idea on how to fix this situation I’ve been in struggling with for quite a big while. I’m doing a blood flow simulation, and I have some inlets and an outlet. Apart from the wall, I create the inlet/outlet patches after running snappyHexMesh, using topoSet and createPatch utilities.

After running snappyHex, without generating any boundary layers, the patches look fine, but after adding one or more b.layers, the mesh quality decreases more and more. I've searched the forum for similar threads, and I found out that perhaps the resolveFeatureAngle is the problem. I tried reducing the angle and adding refinement levels, but a dramatic increase to the number of cells was observed (from around 2mil to 4mil), although the patches looked a little bit better.

I’m attaching snappyHex, meshQuality and surfaceFeatureExtract Dictionaries. Could it be a problem in the snapping procedure as well? CheckMesh is OK. (mergePatchFacesAngle 45 didn't work)

Any suggestions on how to improve the quality without massively increasing the number of cells would be very much appreciated.

Thanks a lot,
Paul
Attached Images
File Type: png snappyHex.PNG (156.6 KB, 31 views)
Attached Files
File Type: txt meshQualityDict.txt (947 Bytes, 5 views)
File Type: txt surfaceFeatureExtractDict.txt (1.0 KB, 1 views)
File Type: txt snappyHexMeshDict.txt (9.1 KB, 4 views)
paulvrs is offline   Reply With Quote

Old   March 30, 2022, 04:39
Default
  #2
Member
 
Join Date: Mar 2018
Posts: 33
Rep Power: 8
ghastbug is on a distinguished road
I had something a bit similar happen to me with snappy.

1- I made a solid body, say, a stick
2- I made a cylinder around it. It is a wall with boundary facetype I later change to cyclicAMI, to make the stick rotate. (same as the one in the propeller tutorial)

3- I add boundary layers to the stick. When this happens, the cylinder gains jagged edges


This issue also happened to someone named Mashiro in the forum. So it looks like, if you add layers inside a geometry, it gets deformed.


EDIT: I fixed my problem by doing this:
Code:
addLayersControls{
mergePatchFacesAngle 10;          // I added this option. I think it fixed the issue


 {
Try it yourself and see how it goes.

Last edited by ghastbug; March 30, 2022 at 07:38.
ghastbug 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
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 08:34
[snappyHexMesh] snappyHexMesh does not detect highly skewed faces? ptpacheco OpenFOAM Meshing & Mesh Conversion 1 January 4, 2022 13:37
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38


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