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

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Search this Thread Display Modes
July 21, 2021, 16:33
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: 3
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
 image1_geometry_2D_mesh.png (12.6 KB, 1 views) image2_extruded_mesh.png (8.0 KB, 0 views)

 July 21, 2021, 18:07 #2 New Member   Icaro Amorim de Carvalho Join Date: Dec 2020 Posts: 21 Rep Power: 3 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}; }

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 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 hyunko SU2 Installation 7 March 16, 2020 05:37 divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 05:17 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:12.

 Contact Us - CFD Online - Privacy Statement - Top