CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

How to tetrahedron from a triangular mesh?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2023, 03:46
Default How to tetrahedron from a triangular mesh?
  #1
Member
 
zhangqiang
Join Date: Nov 2022
Posts: 43
Rep Power: 3
zhang-qiang is on a distinguished road
For example, I have a triangular mesh for 3D volume object. In order to generate `SU2` file, I need to firstly generate triangular mesh.

Is there any powerful python package to generate tetrahedron from a triangular mesh? Any suggestion is appreciated~~~
zhang-qiang is offline   Reply With Quote

Old   January 16, 2023, 06:46
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 657
Rep Power: 19
bigfootedrockmidget is on a distinguished road
I suggest you try to do everything in gmsh using structured meshes.



The best thing imo that you could do is to build the 3D model from scratch from your own geometry definition. If you have some kind of irregular geometric shape already, then convert the edges of the shape to a collection of lines and load that in gmsh.If you have the mathematical definition of the shape, then use that to define the edges. For instance, you can define a circular face in gmsh and then extrude that face according to some user defined expression. See for instance the gmsh .geo file of this tutorial:
https://su2code.github.io/tutorials/...pendent_Model/


or this gmsh video: https://www.youtube.com/watch?v=VokUbWUhU-c



and the gmsh manual, specifically 2.19
https://gmsh.info/doc/texinfo/gmsh.html


I hope this helps.
bigfootedrockmidget is offline   Reply With Quote

Old   January 16, 2023, 23:10
Default
  #3
Member
 
zhangqiang
Join Date: Nov 2022
Posts: 43
Rep Power: 3
zhang-qiang is on a distinguished road
Many thanks. I will try gmsh~~~
zhang-qiang is offline   Reply With Quote

Reply

Tags
tetrahedron


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
[snappyHexMesh] High quality mesh for wind in complex urban environment ziboaa OpenFOAM Meshing & Mesh Conversion 1 January 12, 2021 16:33
GeometricField -> mesh() Function Tobi OpenFOAM Programming & Development 10 November 19, 2020 12:33
Non-physcial solution in the case of triangular mesh from interFoam ata OpenFOAM 28 September 4, 2016 12:59
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 19:10


All times are GMT -4. The time now is 21:12.