[Gmsh] Extrusion with changing mesh size

D Haley mycae at yahoo.com
Thu Aug 5 19:54:39 CEST 2010


Dear Gmsh-List,

I have created a cylinder by extrusion of four arc-segments, but would like one side of the mesh to have  small elements, and the other end large; Is this possible in gmsh? I cannot see how I can use point weights to do this.


Point(1) = {0,0,0,0.5};

Point(2) = {2500,0,0,0.5};
Point(3) = {0,2500,0,0.5};
Point(4) = {-2500,0,0,0.5};
Point(5) = {0,-2500,0,0.5};

Circle(1) = {2,1,3};
Circle(2) = {3,1,4};
Circle(3) = {4,1,5};
Circle(4) = {5,1,2};

Line Loop(5) = {1,2,3,4};
Plane Surface(6) = {5};

Extrude {0,0,10000} {
  Surface{6};
}


Thanks.