[Gmsh] Extruding Lines

Paolo Tricerri paolotricerri at gmail.com
Tue Jan 22 17:29:09 CET 2013


Dear all,

I am trying to extrude a curve to generate a surface and define physical
lines. The code I use is the following:

lc = 0.1;
h = 0.1;
R= 0.50;
L = 20.0;

// ############# POINTS ##############
//Base
Point(0) = {0, 0, 0, lc};
Point(1) = {R, 0, 0, lc};
Point(2) = {0, R, 0, lc};

Circle(1) = {1,0,2};
Circle(2) = {2,0,3};


Transfinite Line{1,2}=46;

nb_layers = 5;
out[] = Extrude{Line{1};Layers{nb_layers,-0.1};Using Index[1];};
Physical Surface(200)={out[1]};
Physical Line(350)={out[0]};
Physical Line(450)={out[3]};
Physical Line(550)={out[4]};

When I visualize the mesh, the physical entities are correctly saved and I
am able to visualize the surface but I am not able to plot any of the
physical lines. What could be the problem?

Many thanks in advance,

Paolo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130122/95e260e7/attachment.html>