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

[mesh manipulation] Utility for hexaedra cell splitting

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2015, 09:03
Default Utility for hexaedra cell splitting
  #1
New Member
 
Karl Lindqvist
Join Date: Jul 2012
Posts: 21
Rep Power: 14
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.

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
karlli is offline   Reply With Quote

Old   July 6, 2015, 10:27
Default New utilities
  #2
New Member
 
Karl Lindqvist
Join Date: Jul 2012
Posts: 21
Rep Power: 14
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.

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.
karlli 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
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


All times are GMT -4. The time now is 02:13.