[Gmsh] Get 2D elements with an edge on a 1D curve?

Christophe Geuzaine cgeuzaine at uliege.be
Mon Jan 7 22:02:11 CET 2019



> On 28 Dec 2018, at 07:30, Arjun Narayanan <arjun.narayanan91 at gmail.com> wrote:
> 
> Hello All,
> 
> I am using the gmsh Julia API. I wanted to know if there is a way of getting all 2D elements which have an edge on a 1D curve in the geometry?

You'll have to generate the connectivity (here the edges) for this - currently the API does not expose this. You can use  gmsh.model.getBoundary() to get all the curves on the boundary of a surface, hence limiting the search.

Christophe


> For example, all the 2D elements on an internal/external boundary?
> 
> Thanks for your time.
> 
> regards,
> Arjun Narayanan
> _______________________________________________
> 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

Free software: http://gmsh.info | http://getdp.info | http://onelab.info




More information about the gmsh mailing list