|
[Sponsors] |
[mesh manipulation] How to convert tetrahedral to polyhedral mesh in OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 12, 2020, 22:09 |
How to convert tetrahedral to polyhedral mesh in OpenFOAM
|
#1 |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
Hi everyone,
Hope you are fine and doing well. I am trying to convert tetrahedral mesh to polyhedral mesh using polyDualMesh utility in OpenFOAM at: https://openfoamwiki.net/index.php/P...esh_generation I can work until step 4, but for the steps 5 and 6, there are some options in commands and I do not know how to use it correctly. Could someone please help me to clear the command in steps 5 and 6. My mesh now is as below. Thank you in advance. |
|
July 13, 2020, 07:17 |
|
#2 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28 |
What are you trying to achieve? Convert a 3D tet-mesh into a 3D polyhedral mesh, or converting a 2D triangular mesh into a 2D polyhedral mesh.
Note, that the page you linked to was last modified in 2011. Things might be a little bit different now. The page you linked to, seems to be specifically about 2D meshes. For a 3D mesh, I use the following steps:
See the attached images for each step. |
|
July 13, 2020, 09:10 |
|
#3 | |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
Quote:
Hi, Thanks for your comment I am trying to convert 2D tetra to 2D polyhedral. I understand that there are some modifications in that link then I do not know how to work correctly with that. Could you please share with me some hints with setSet and subsetMesh. I really don’t understand it well. |
||
July 14, 2020, 03:12 |
|
#4 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28 |
For a 2D mesh, I would recommend the following approach:
* Note: OpenFOAM only deals with 3D meshes, even in 2D cases. In a 2D case, the mesh is one cell in thickness. Thus, a triangular 2D mesh is in reality a prismatic mesh, with cells having a triangular base. See the attached images for some snapshots of the process. |
|
July 14, 2020, 04:11 |
|
#5 | |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
Quote:
Yes, I have already converted 2D triangular mesh into polyhedral mesh with step 2+3 as in tutorial and my mesh now has 2 layers as your 1st figure (please see the attachement). However, I do not know how to extrude one cell layer from the front or back as you said and how to discard the initial mesh |
||
July 16, 2020, 06:35 |
|
#6 | |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
Quote:
I can make both front and back are polyhedral cell mesh but I do not know why my internalMesh is strange like this. Could you please help me to explain it. |
||
July 16, 2020, 16:01 |
|
#7 | |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28 |
Quote:
See the commented extrudeMeshDict of OpenFOAM, e.g. here https://github.com/OpenFOAM/OpenFOAM...xtrudeMeshDict This should be rather self-explanatory. |
||
July 16, 2020, 21:20 |
|
#8 | |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
Quote:
The problem has been solved. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem converting from Tetrahedral to Polyhedral Mesh | iakov1703 | ANSYS | 6 | February 19, 2022 14:58 |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 06:09 |
[CAD formats] Can OpenFOAM convert foam mesh to stl? | liying02ts | OpenFOAM Meshing & Mesh Conversion | 10 | December 30, 2018 10:03 |
[Other] vtk mesh or Abaqus mesh to OpenFOAM | bigphil | OpenFOAM Meshing & Mesh Conversion | 27 | November 23, 2015 17:31 |
[Technical] is possible to do tetrahedral or polyhedral mesh OpenFoam?? | Ale_galleria | OpenFOAM Meshing & Mesh Conversion | 2 | January 11, 2011 06:06 |