CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Mesh Utilities

Avoid faces that don't belong to any cell

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

LinkBack Thread Tools Display Modes
Old   June 24, 2013, 01:55
Default Avoid faces that don't belong to any cell
New Member
Join Date: Jun 2012
Posts: 11
Rep Power: 7
j3r is on a distinguished road

I’m trying to generate a structure composed of cubic mesh cells to perform some OpenFoam simulations.

Right now I generate a cuboid with blockMesh and utilize snappyHexMesh to remove the structure (let’s call it “solid”) defined in a stl file. As I need cubic mesh cells I disabled the “snap” and “addLayer” options in sHM, thus only “castellatedMesh” is enabled.

In general, the structure generation works fine but it seems like in some cases sHM generates “solid” faces that do not belong to any “solid” cell. Specifically, if the structure in the stl file overlaps only with a few faces of an original cell e.g. only 3 faces of the original cell are replaced by “solid” faces (see image; shown is a section of the “solid” structure where only 3 “solid” faces were generated but no volume was removed from the original mesh). This way no “solid” cell is removed from the original mesh even though the generated “solid” faces influence the simulation as they have certain boundary conditions

My question now is if I can somehow “tell” snappyHexMesh to only generate “solid” faces if they belong to a “solid” cell. I enabled the “debug” option in sHM and apparently sHM removes some of the above mentioned unwanted faces between the last two iteration steps but for some reason not all of them. Alternatively, is it possible to subsequently select all “solid” faces that do not belong to any “solid” cell and delete them?

Please let me know if you need additional information.

Thank you very much and kind regards,
Attached Images
File Type: png open_cube.png (1.7 KB, 2 views)
j3r is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Faces of a cell Andrea_85 OpenFOAM 14 May 14, 2017 00:57
interFoam running blowing up sandy13 OpenFOAM Running, Solving & CFD 2 May 5, 2015 07:16
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 14:38
Full force and moment coefficient output Newfoamy OpenFOAM 6 March 17, 2010 04:19
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36

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