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

Utility for hexaedra cell splitting

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

LinkBack Thread Tools Display Modes
Old   June 29, 2015, 08:03
Default Utility for hexaedra cell splitting
New Member
Karl Lindqvist
Join Date: Jul 2012
Posts: 20
Rep Power: 7
karlli is on a distinguished road
Dear all,
I'm in the process of creating a mesh where I need to split hexaedral cells into pyramid- and tetrahedral cells in order to obtain conforming patches that can later be merged. I now need some help on what existing utilities that are best suited for the cell splitting task.

To explain my needs, the patches are shown in the figure below. As shown, the overlapping parts conform if I'm able to split the hexaedras on the diagonal.


To achieve the diagonal split, my approach is to subdivide each cell that belong to the patches into four pyramid cells (retaining the original side faces). I can then proceed splitting the pyramids that still belong to the patch into two tetrahedra each. The cell splits are shown in the figure below, with the two tetrahedra colored yellow.


The following figure shows the end result I would like for the yellow patch.


So far, I have tried using splitCells, but the results were rather unpredictable at the edges of the patch and the utility has few settings. Perhaps it can be used for one of the tasks above with some modifications? Would this be the most feasible alternative?

I have also found out that modifyMesh can split hex cells into pyramids, but I would like to provide it with a cellSet rather than a list of points (as the current implementation requires). As I am new to OpenFOAM programming, could someone give me a hint on how to add this feature (point to source code using cell sets etc)?

For the pyramid -> tetrahedron split, I have found the source code of the tetDecomposer utility, but I have no idea how to use it. Would it be a feasible point to start for this task, or are there better alternatives?

All help is appreciated,
Best regards,
karlli is offline   Reply With Quote

Old   July 6, 2015, 09:27
Default New utilities
New Member
Karl Lindqvist
Join Date: Jul 2012
Posts: 20
Rep Power: 7
karlli is on a distinguished road
For those stumbling upon this thread, I have create the utilities I required myself. They are available on github at the links below. Just clone/download and wmake. Please drop a line below if you find it useful.

Usage should be self-explanatory (from the -help text), but I should point out that consistent pyramid -> tetrahedron splitting relies on consistent face vertex numbering of the pyramid "base" throughout the mesh. The utility works great on meshes created by blockMesh but I don't know the performance on meshed which have been modified e.g. by snappyHexMesh.
karlli 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
Cell Reynolds Number laliong Main CFD Forum 11 March 19, 2015 12:42
2 datas on one plot Akuji ParaView 46 December 1, 2013 15:06
[Workbench] Creation of Cell Zones for processing in FLUENT kailingkk ANSYS Meshing & Geometry 0 October 5, 2013 05:09
monitoring cell Jane Siemens 2 March 4, 2004 22:01
cell to cell relation CMB Siemens 1 December 4, 2003 05:05

All times are GMT -4. The time now is 10:19.