ElmerGrid "forgets" some names converting from gmsh
Posted: 22 Jan 2024, 16:05
Cross-posting from github issue
I have a gmsh file which specifies 28 "PhysicalNames" but unfortunately the resulting "mesh.names" file only contains 14 of them.
Please see the original post for more details, but feel free to interact on either platform.
The problem appears to be independent of the actual names and probably is related to the fact that some of the named boundaries intersect.
richb2k has kindly attempted to reduce the problem to a minimal reproducible example, however so far we have just confirmed that the problem does not occur every time there are overlapping boundaries.
The problem is reproducible with the attached .msh file running:
The resulting mesh.names file only contains the first 8 of 22 boundary names. The output of the command is also attached, the only thing that stands out to me are the two lines:
So the tags are parsed/detected, but not "read".
Any help would be appreciated.
Remaining metadata:
- my OS is ubuntu 22
- ElmerSolver version is "Version: 9.0 (Rev: unknown, Compiled: 2023-09-07)", installed through "apt install elmerfem-csc"
I have a gmsh file which specifies 28 "PhysicalNames" but unfortunately the resulting "mesh.names" file only contains 14 of them.
Please see the original post for more details, but feel free to interact on either platform.
The problem appears to be independent of the actual names and probably is related to the fact that some of the named boundaries intersect.
richb2k has kindly attempted to reduce the problem to a minimal reproducible example, however so far we have just confirmed that the problem does not occur every time there are overlapping boundaries.
The problem is reproducible with the attached .msh file running:
Code: Select all
ElmerGrid 14 2 buggy_mesh.msh -names -out ElmerMesh
Code: Select all
Physical given tag range is [2 28] !-- the correct original tag range
...
Physical read tag range is [2 14] !-- the wrong final tag range
Any help would be appreciated.
Remaining metadata:
- my OS is ubuntu 22
- ElmerSolver version is "Version: 9.0 (Rev: unknown, Compiled: 2023-09-07)", installed through "apt install elmerfem-csc"