[Gmsh] baffled by extrude output

Perrin Meyer Perrin at meyersound.com
Thu Feb 24 20:40:08 CET 2011


Hi.

this geo file works, but I'm baffled by the line number ordering returned by extrude.  what do the odd numbers exout[] refer to

gmsh is an awesome program.  thanks in advance for any help. 

perrin


Mesh.Algorithm = 5; 
Mesh.Smoothing = 100;
Mesh.Format = 30;
Mesh.SurfaceFaces = 1;
Mesh.SaveElementTagType = 2;
lc = 0.07*2;
lcfh = 0.5*2;
lcf = 0.03*2;
Point(1) = {1/2,0,0,lc};
Point(2) = {1,0,0,lc};
Point(3) = {1,1,0,lc};
Point(4) = {-1,1,0,lc};
Point(5) = {-1,0,0,lc};
Point(6) = {-1/2,0,0,lc};
Point(7) = {-1/2,1/2,0,lcf};
Point(8) = {-1/4,1/2,0,lcf};
Point(9) = {1/4,1/2,0,lcf};
Point(10) = {1/2,1/2,0,lcf};


Point(100) = {-0.7,0.25,0,lcfh};

Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,5};
Line(5) = {5,6};
Spline(6) = {6,100,7}; // spline 
Line(7) = {7,8};
Line(8) = {8,9};
Line(9) = {9,10};
Line(10) = {10,1};

Line Loop(1) = {1,2,3,4,5,6,7,8,9,10};
Plane Surface(1) = {-1};

Geometry.ExtrudeReturnLateralEntities = 0;

exout[] = Extrude{0,0,2}{Line{1,2,3,4,5,6,7,8,9,10}; };

exout2[] = Extrude{0,0,1}{Line{exout[0],exout[2],exout[4],exout[6],exout[8],exout[10],exout[12],exout[14],exout[16],exout[18]}; };

exout3[] = Extrude{0,0,1}{Line{exout2[0],exout2[2],exout2[4],exout2[6],exout2[8],exout2[10],exout2[12],exout2[14],exout2[16],exout2[18]}; };



//i = 0;
//For(1:30)
//Printf("exout[%g] = %g ",i,exout[i]);
//i = i + 1;
//EndFor



Line Loop(500) = {exout3[0],exout3[2],exout3[4],exout3[6],exout3[8],exout3[10],exout3[12],exout3[14],exout3[16],exout3[18]};
Plane Surface(500) = {500};

Physical Surface(1) = {82};
Physical Surface(2) = {1:81,83:1000};

NOTICE: This email may contain confidential information.  Please see http://www.meyersound.com/confidential/ for our complete policy.