I have generated gmsh file in version 2 format.
I have named the surface “out” as attached screenshot.
I imported the gmsh file into netgen and checked those labels
with the following python script.
from netgen.read_gmsh import ReadGmsh
mesh = ReadGmsh('input_v2.msh')
import ngsolve
mesh = ngsolve.Mesh(mesh)
from ngsolve import *
print(mesh.GetMaterials())
print(mesh.GetBoundaries())
Tha label names are renamed.
('air', 'magnetic')
('air',)
input_v2.msh (1024.0 KB)