[Gmsh] physical group labels

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Feb 11 13:41:01 CET 2016


> On 28 Jan 2016, at 09:13, Владимир Кузнецов <runekerjob at gmail.com> wrote:
> 
> Hi, i have problem with physical group labels.
> I open gmsh.exe and create physical surface. In geo file i see something like this:
> 
> Physical Surface(35) = {18, 20, 22, 24}; 
> 
> But, i need label for this surface like this:
> 
> Physical Surface("label", 35) = {18, 20, 22, 24};
> 
> Can i label this surface without edit geo file in text editor?
> 

We have added this is recent nightly snapshots. Give it a try...

> -----------------------------------------------------------------
> 
> Second question:
> Ok, i have geo file with physical surfaces without labels:
> Physical Surface(35) = {18, 20, 22, 24};
> 
> can i get id for this physical surface?
> If physical surface has label, i just use this function:
> 
> Gmodel *m;
> m->getPhysicalName(dimension, id);
> m->getPhysicalNumber(dimension, name);
> 
> How can i get id for surfaces without labels?
> 
> thanks in advice
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

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

Tetrahedron V, July 4-5 2016: http://tetrahedron.montefiore.ulg.ac.be
Free software: http://gmsh.info | http://getdp.info | http://onelab.info




More information about the gmsh mailing list