CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

How to extrude unstructured mesh from a surface with more than 5 points

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2021, 16:33
Default How to extrude unstructured mesh from a surface with more than 5 points
  #1
New Member
 
Icaro Amorim de Carvalho
Join Date: Dec 2020
Posts: 21
Rep Power: 2
PenPencil is on a distinguished road
Hello everyone,

I am trying to simply extrude an unstructured 2D mesh for some length. My 2D mesh is fine, but when I extrude, it seems that Gmsh does not extrude the elements as well, so what I am left with is a mesh without interior elements.

Please check the first image to see the geometry and the 2D unstructured mesh. The second image shows the net result after extrusion. Is there any workaround that I am missing out here?
Thanks.

Below you find my code:
Code:
lc=1.0;
Point(1) = {0, 5, 0, lc};
Point(2) = {0, 0, 0, lc};
Point(3) = {5, 5, 0, lc};
Point(4) = {5, 0, 0, lc};
Point(5) = {2.5, -2.5, 0, lc};
Line(1) = {2, 1};
Line(2) = {4, 3};
Line(3) = {5, 4};
Line(4) = {5, 2};
Line(5) = {1, 3};
Curve Loop(1) = {1, 5, -2, -3, 4};
Plane Surface(1) = {1};
Transfinite Surface {1,2,3,4,5};
//Extrude {0, 0, 50} {
//  Point{1}; Point{2}; Point{5}; Point{3}; Point{4}; Curve{1}; Curve{4}; Curve{5}; Curve{2}; Curve{3}; Surface{1}; 
//  Layers {5}; 
//}
Correction: the title of this thread should refer to surface with more than 4 points, not 5.
Attached Images
File Type: png image1_geometry_2D_mesh.png (12.6 KB, 1 views)
File Type: png image2_extruded_mesh.png (8.0 KB, 0 views)
PenPencil is offline   Reply With Quote

Old   July 21, 2021, 18:07
Default
  #2
New Member
 
Icaro Amorim de Carvalho
Join Date: Dec 2020
Posts: 21
Rep Power: 2
PenPencil is on a distinguished road
I have figured out the problem. For future reference for anyone, here is the corrected code:

lc=1.0;
Point(1) = {0, 5, 0, lc};
Point(2) = {0, 0, 0, lc};
Point(3) = {5, 5, 0, lc};
Point(4) = {5, 0, 0, lc};
Point(5) = {2.5, -2.5, 0, lc};
Line(1) = {2, 1};
Line(2) = {4, 3};
Line(3) = {5, 4};
Line(4) = {5, 2};
Line(5) = {1, 3};
Curve Loop(1) = {1, 5, -2, -3, 4};
Plane Surface(1) = {1};
//Transfinite Surface {1,2,3,4,5};
Extrude {0, 0, 50} {
Point{1}; Point{2}; Point{5}; Point{3}; Point{4}; Curve{1}; Curve{4}; Curve{5}; Curve{2}; Curve{3}; Surface{1};
Layers {5};
}
PenPencil is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[snappyHexMesh] non uniform mesh near the stl object vava10 OpenFOAM Meshing & Mesh Conversion 0 January 31, 2021 15:41
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 05:37
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 05:17
[Gmsh] 3D mesh using transfinite surface + extrude with layer? CFD-Lover OpenFOAM Meshing & Mesh Conversion 0 July 5, 2016 03:26
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57


All times are GMT -4. The time now is 10:17.