[Gmsh] Surface numbering

Christophe Geuzaine cgeuzaine at ulg.ac.be
Fri Oct 11 22:48:37 CEST 2013


On 11 Oct 2013, at 08:04, Philippe Ackerer <ackerer at unistra.fr> wrote:

> Hi
> Could someone explain me how the surfaces are numbered ?
> Take for example cube.geo in the provided demos. Since I need the surface numbers, I would like to have them without the GUI.

Hi Philippe - Read the tutorials; they will explain (e.g. in t3.geo) that Extrude returns the list of newly created entities.

In this case: 

tmp[] = Extrude {0,0.0,1} { Surface{6}; };
Physical Volume(1) = tmp[1];



> Thanks
> -- 
> -------------------------------------------------------------
> Philippe ACKERER
> LHyGeS UMR 7517 CNRS-UdS Engees
> 1, rue Blessig
> 67000 STRASBOURG
> Tel: +33 (0)388 560 561
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine