[Gmsh] Extrude for unstructured mesh
Stephan Gekle
stephan.gekle at uni-bayreuth.de
Thu Feb 25 15:57:44 CET 2016
Hi all,
I need to mesh a 2D surface which has been created by extrusion (see
code below). However, I need all surfaces to be meshed with triangles
since I am using it with a self-made program which only handles triangles.
How can I make the extruded be meshed with unstructured triangles and
not with a structured mesh as is done when I run the code below?
Thanks a lot for any help,
Stephan
lc=0.1;
Point(1) = {-1, 0, 0, lc};
Point(2) = {-0.5,0,0.5,lc};
Point(3) = {-0.25,0,0.7,lc};
Point(4) = {0,0,1,lc};
Point(5) = {0.2,0, 0.7,lc};
Point(6) = {0.4,0,0.6,lc};
Point(7) = {0.5,0,0.2,lc};
Point(8) = {0.6,0,0,lc};
Spline(1)={1,2,3,4};
Spline(2)={4,5,6,7,8};
Line(3)={8,1};
Line Loop(1) = {1,2,3};
Plane Surface(2) = {1};
Extrude Surface { 2, {1,0,0}, {0,0,0}, Pi} {
Layers{20}; Recombine;
};
Mesh 2;
More information about the gmsh
mailing list