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

[snappyHexMesh] Delete cells with special volume

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2016, 10:45
Default Delete cells with special volume
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,716
Blog Entries: 6
Rep Power: 53
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hey together,

in the attachment you find a simple meshing example and I am trying to figure out how to remove these bad cells during the snap procedure. I know that I can move my backgroundmesh to get rid of these cells but I do not want to do it in this way. A look into the snappyHexMeshDict and the mesh quality controls is promising with 3 parameters:
Code:
//- Minimum pyramid volume. Is absolute volume of cell pyramid.
//  Set to a sensible fraction of the smallest cell volume expected.
//  Set to very negative number (e.g. -1E30) to disable.
minVol 1e-13;


//- Volume ratio of neighbouring cells (0 -> 1)
minVolRatio 0.01;



//- if >0 : preserve cells with all points on the surface if the
//  resulting volume after snapping (by approximation) is larger than
//  minVolCollapseRatio times old volume (i.e. not collapsed to flat cell).
//  If <0 : delete always.
//minVolCollapseRatio 0.1;
The first one is recognized by snappyHex mesh (I can see it in the output) but all bad cells remain. The last parameter (minvolCollapseRatio) is not working with negative or even values up to 0.9. And the parameter (minVolRatio) is also not working.

Hence, there are several questions:

  • Why we have these parameters if they do not influence the result
  • Does anybody know if minVolRatio or minVolCollapseRatio is working


Thanks in advance,
Tobi
Attached Images
File Type: jpg deleteCell.jpg (150.7 KB, 66 views)
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   October 28, 2025, 06:43
Default
  #2
New Member
 
Guillén Campaña Alonso
Join Date: Jun 2021
Posts: 9
Rep Power: 6
gcampana is on a distinguished road
Dear Tobi,

Did you ever find out what was happening?

Best regards,

Guillén
gcampana is offline   Reply With Quote

Old   October 28, 2025, 06:47
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,716
Blog Entries: 6
Rep Power: 53
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi, never investigate further.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   October 28, 2025, 06:50
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,716
Blog Entries: 6
Rep Power: 53
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Let me check if the case still work's with the crap things. Since it is a long time ago and I got way more knowledge, maybe it's now straight forward to me

I guess one point was, that some of the mesh quality parameters are uses within the castellated part. Hence, snapping makes cells crazy but there is no removing adding algorithm. Thus, we move the mesh to its surface but if the quality parameters are not satisfied, we move it back to its origin position to reach a more or less valid mesh.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   October 28, 2025, 06:51
Default
  #5
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,716
Blog Entries: 6
Rep Power: 53
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Out of the box, one could use topoSet to select different cells (or checkMesh to create cellSets) and remove the cells via subsetMesh.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   October 28, 2025, 07:39
Default
  #6
New Member
 
Guillén Campaña Alonso
Join Date: Jun 2021
Posts: 9
Rep Power: 6
gcampana is on a distinguished road
Thank you for your prompt response!

I am struglling with "strange" cells (highlighted cell on snapped2.png) at a patch.

This low quality cell comes from an isolated face that is assigned to the patch at the castellated phase (castellated.png, white triangles represent the STL surface).

This cells totally break the add layer process. I do not want to use explicitFeatureSnap as it also messes with addLayers.

I thought that some of the parameters that you pointed out could manage this issue but I am not being able to solve it.

Do you have any suggestions?

Thank you for your help!
Attached Images
File Type: jpg castellated.jpg (59.6 KB, 10 views)
File Type: jpg snapped.jpg (49.6 KB, 7 views)
File Type: jpg snapped2.jpg (113.4 KB, 7 views)
gcampana 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
[snappyHexMesh] Help with Snappy: no layers growing GianF OpenFOAM Meshing & Mesh Conversion 2 September 23, 2020 09:26
[snappyHexMesh] Layers not growing at all zonda OpenFOAM Meshing & Mesh Conversion 12 June 6, 2020 12:28
cellZone not taking all the cells inside rahulksoni OpenFOAM 0 January 16, 2019 02:16
snappyhexmesh remove blockmesh geometry philipp1 OpenFOAM Running, Solving & CFD 2 December 12, 2014 11:58
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 22:40.