[Gmsh] obtaining numbers of geometric sub-elements

Christophe Geuzaine cag32 at case.edu
Tue Nov 15 14:42:14 CET 2005

Manav Bhatia wrote:
> Hi
> Given a volume and its identification, is there a way to find out the  
> identification numbers of the surfaces that make up the volume?  
> Similarly, can the line numbers for a surface be found out?

There's nothing in the language for that at the moment, although it
would be easy enough to add. When would this information be useful?

> Also, I am unable to locate the fault in this statement
> tmp[] = Extrude Line {1, {1,0,0}};
> where Line 1 already exists, and I am trying to get the number of  
> surface created as a result of this operation.

It's a little quirk in the syntax: you need a double semicolon after extrude

tmp[] = Extrude Line {1, {1,0,0}}; ;

> Thanks
> Manav
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

Christophe Geuzaine
Assistant Professor, Case University, Mathematics

More information about the gmsh mailing list