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

[Gmsh] Mesh a truncated cone with prism layers

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2022, 18:09
Default Mesh a truncated cone with prism layers
  #1
New Member
 
Join Date: Jun 2022
Posts: 19
Rep Power: 4
TommyJ is on a distinguished road
Hello to all,

I would like to mesh a cone with hexahedral mesh. The idea is to have a unstructured mesh on the top and bottom and "prism" (hexahedral) throughout the height.

I am able to generate what I want in 2D mesh (script attached), but when I go to 3D it will generate tetras instead of hexas. I do know know how to solve this, and would appreciate some help.

Is it possible to extrude a mesh with an angle?

Kind Regards

cone.zip
TommyJ is offline   Reply With Quote

Old   June 28, 2022, 05:29
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Not sure.

Does classy_blocks help here https://github.com/damogranlabs/classy_blocks

Classy_blocks supports truncated cone (frustrum) as building block https://github.com/damogranlabs/clas...ape/frustum.py
dlahaye is offline   Reply With Quote

Old   June 28, 2022, 05:44
Default
  #3
New Member
 
Join Date: Jun 2022
Posts: 19
Rep Power: 4
TommyJ is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Not sure.

Does classy_blocks help here https://github.com/damogranlabs/classy_blocks

Classy_blocks supports truncated cone (frustrum) as building block https://github.com/damogranlabs/clas...ape/frustum.py

Hello Mr. Dlahaye,

Thank you for the alternative. But I would really like it to be made inside gmsh environment. This part will connect to another geometry (which I have already drawn inside gmsh). I have drawn the truncated cone with a structured mesh, but would also like to have it with an unstructured one.


However, if I let it generate tetras the mesh metrics will not be good. And I would like to create "prisms", i.e generate non-structured mesh for a circle and extrude it at an angle/ or generate the two circles, connect them and ask to generate the mesh (as in the attached script). I get the 2D outline but cannot get the 3D mesh as I want it.
TommyJ is offline   Reply With Quote

Old   June 29, 2022, 05:07
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
I am insufficiently versatile in gmsh to be able to help you. Sorry.
dlahaye 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
Number of prism layers mesh study mtheory STAR-CCM+ 2 August 14, 2021 07:49
Mesh Bias Factor , Prism Layers Elsarraj_11 STAR-CCM+ 0 April 7, 2021 15:01
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
Mesh with Prism Layers mdgowhar SU2 3 March 20, 2014 10:36
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 00:35.