You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently facing an issue with reading in a msh file from GMSH (4.11.1), and saving it again (without modification) to a GMSH msh file. For this, I use the following:
The initial msh file test.msh can be opened by GMSH again. The resulting msh file test2.msh however cannot. The test.geo file (from which the test.msh is generated) is:
I have realized that 1. the entities representing the lines are missing, and 2. the "nodes"(?) representing the elements (previously 1 1 0 0, 1 2 0 0, 1 3 0 0 and 1 4 0 0) are missing (and the entries in the first line are therefore also different). If adding the missing entries in "Nodes" by hand, the lines are discretized, but GMSH reads it in fine. If also adding the entities, no discretization is necessary and GMSH reads it in fine aswell.
Can someone maybe point me to a solution to this problem? Of course my real mesh is a little more complicated, but it boils down to this issue.
The text was updated successfully, but these errors were encountered:
TimS-HSU
changed the title
[BUG] If a line is discretized by one element, the gmsh:dim_tags is missing
[BUG] If a line is discretized by one element, import and export with meshio does not yield a file readable by GMSH
Jul 11, 2023
I am currently facing an issue with reading in a msh file from GMSH (4.11.1), and saving it again (without modification) to a GMSH msh file. For this, I use the following:
meshio.__version__
returns 5.0.0.The initial msh file test.msh can be opened by GMSH again. The resulting msh file test2.msh however cannot. The test.geo file (from which the test.msh is generated) is:
The resulting test.msh looks as follows:
After reading in and saving the file as msh with meshio again, this yields
I have realized that 1. the entities representing the lines are missing, and 2. the "nodes"(?) representing the elements (previously 1 1 0 0, 1 2 0 0, 1 3 0 0 and 1 4 0 0) are missing (and the entries in the first line are therefore also different). If adding the missing entries in "Nodes" by hand, the lines are discretized, but GMSH reads it in fine. If also adding the entities, no discretization is necessary and GMSH reads it in fine aswell.
Can someone maybe point me to a solution to this problem? Of course my real mesh is a little more complicated, but it boils down to this issue.
The text was updated successfully, but these errors were encountered: