Range of a named boundary

I would like to find the domain range of a particular named boundary. I can get the point values via

for el in mesh.Elements(ngsolve.BND):
        for v in el.vertices:
            print(mesh[v].point) 

however if I have two different named boundaries (say ‘left|right’
), I would like to know which boundary a particular vertex might belong to. Is there a way to find this information? Thank you!

You can get the name of the boundary with el.mat

1 Like