Help in getting the boundary from gmsh to Fenics

Hi,
this is a pure Gmsh question so I recommend asking for help on Gmsh elsewhere. But anyway, from the Gmsh documentation 5.1.5 Extrusions:

As explained in Floating point expressions, extrude can be used in an expression, in which case it returns a list of tags. By default, the list contains the “top” of the extruded entity at index 0 and the extruded entity at index 1, followed by the “sides” of the extruded entity at indices 2, 3, etc. For example:

Point(1) = {0,0,0}; 
Point(2) = {1,0,0}; 
Line(1) = {1, 2}; 
out[] = Extrude{0,1,0}{ Curve{1}; }; 
Printf("top curve = %g", out[0]); 
Printf("surface = %g", out[1]); 
Printf("side curves = %g and %g", out[2], out[3]);

it also applies to extrusion of surfaces

1 Like