|
[Sponsors] |
[mesh manipulation] Utility for hexaedra cell splitting |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 29, 2015, 09:03 |
Utility for hexaedra cell splitting
|
#1 |
New Member
Karl Lindqvist
Join Date: Jul 2012
Posts: 21
Rep Power: 14 |
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. fisk4.jpg 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. fisk5.jpg The following figure shows the end result I would like for the yellow patch. fisk6.jpg 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, Karl |
|
July 6, 2015, 10:27 |
New utilities
|
#2 |
New Member
Karl Lindqvist
Join Date: Jul 2012
Posts: 21
Rep Power: 14 |
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.
http://github.com/kelindqv/hexCellSetToPyr http://github.com/kelindqv/pyrCellSetToTet 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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compute/Extract cell wall distance | Ionut G | Fluent UDF and Scheme Programming | 0 | March 23, 2017 08:05 |
bubble behavior simulation in solar water splitting cell | jianjiao.08 | Fluent Multiphase | 0 | November 9, 2016 09:56 |
[General] 2 datas on one plot | Akuji | ParaView | 46 | December 1, 2013 15:06 |
monitoring cell | Jane | Siemens | 2 | March 4, 2004 22:01 |
cell to cell relation | CMB | Siemens | 1 | December 4, 2003 05:05 |