Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while reading Ansys meshing .msh #1469

Open
hugh-tong opened this issue May 12, 2024 · 0 comments
Open

Error while reading Ansys meshing .msh #1469

hugh-tong opened this issue May 12, 2024 · 0 comments

Comments

@hugh-tong
Copy link

hugh-tong commented May 12, 2024

Describe the bug

I wrote the code to read the Ansys meshing file .msh :

import meshio

# Read binary .msh file(Created by Ansys meshing)
mesh = meshio.read("smesh20240508-0.msh")

And got the error:

Warning: Unknown index 4. Skipping.
Warning: Unknown index 2120. Skipping.
Error: Couldn't read file smesh20240508-0.msh as either of ansys, gmsh

The header of mesh is :

  1 (0 machine configuration:)
      2 (4 (60 0 0 1 2 4 4 4 8 4 8 4))
      3 (0 grid written by ANSYS Meshing
      4 nodes:       (10 (id start end type) (x y z ...))
      5               faces:       (13 (id start end type elemType)
      6                 (v-0 v-1 .. v-n right-cell left-cell ...))
      7    cells:       (12 (id start end type elemtype))
      8    parent-face: (59 (start end parent child) (nchilds child0 child1 ...))
      9 )
     10 (2 3)
     11 (10 (0 1 1ae4bc 0))
     12 (13 (0 1 10388e 0))
     13 (12 (0 1 893d24 0))
     14 (3010 (1 1 1ae4bc 1 3)
@hugh-tong hugh-tong changed the title [BUG] Error while reading Ansys meshing .msh May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant