Error with pyramid elements and getBasisFunctions API call.
Greetings,
I have been using the GMSH Python API quite heavily for quite some time, and its great!
Currently I'm working on a 3-D model of an inductor with a colleque of mine. Recently we hit an error
Exception: Unknown familyType 6 for basis function type HcurlLegendre
which is raised by the API function call gmsh.model.mesh.getBasisFunctions(element_type, points, basis_type)
where
element_type = 7
points = np.array([0,0,0.25])
basistype = 'HcurlLegendre0'
Element type indicates a 5-node pyramid element. The domain indeed contains some pyramids, since we have extruded (revolve) and recombined areas containing hexahedrons and also tetrahedrons elsewhere.
I checked the GMSH source code, and probably this message originates from https://gitlab.onelab.info/gmsh/gmsh/-/blob/master/src/common/gmsh.cpp#L2849 . There doesn't seem to be any references to pyramids in that switch-statement?
Are "HcurlLegendre pyramids" currently not supported by the API?
Best Regards,
Antero Marjamäki