|
[Sponsors] |
How to extrude unstructured mesh from a surface with more than 5 points |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 21, 2021, 15: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: 24
Rep Power: 5 |
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}; //} |
|
July 21, 2021, 17:07 |
|
#2 |
New Member
Icaro Amorim de Carvalho
Join Date: Dec 2020
Posts: 24
Rep Power: 5 |
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}; } |
|
|
|
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 14:41 |
SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 04:37 |
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! | divergence | OpenFOAM Meshing & Mesh Conversion | 0 | January 23, 2019 04:17 |
[Gmsh] 3D mesh using transfinite surface + extrude with layer? | CFD-Lover | OpenFOAM Meshing & Mesh Conversion | 0 | July 5, 2016 02:26 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 18:57 |