Gmsh fails to detect duplicate nodes on a single entity (curve)
I am trying to generate a 1D element mesh (Python API) from a series of sinusoidal curves and get some significant node IDs from points (physical groups) to create constraints later. The mesh is in a plane and is then wrapped into a cylindrical shape, as shown in the attached figure.
Each of the sinusoidal curves is assigned to a physical group. The curves overlap (have certain duplicate points and nodes), but I do not wish to remove those duplicate nodes. The duplicate nodes I want to remove are on the first and last point of each curve - those nodes coincide once the mesh is wrapped into a cylindrical shape.
I tried to use the removeDuplicateNodes()
function with the dimTags
of each curve to only remove the desired nodes, but no duplicate nodes were found (I also tried the getDuplicateNodes()
function, which returned an empty list. Trying to input the desired points instead of the whole curve for dimTags
also did not work). In contrast removeDuplicateNodes()
and getDuplicateNodes()
functions without specified dimTags
do detect the duplicate nodes I would like to remove but also remove/detect all the other duplicate nodes that I wish to keep. I am also attaching the Python script. I am using the latest Gmsh version (4.11.1), but I also tried the same script on 4.10.5 and got the same results. What am I missing?
Thank you in advance,
Žiga