Converting the mesh file generated from GMSH to a mesh file that can be read on ANSYS #1406
Unanswered
WalaaElhamamy
asked this question in
Q&A
Replies: 1 comment
-
Did you ever resolve this problem? running into a similar issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I did my mesh using GMSH and generated .msh file, and I tried to insert the mesh directly into ANSYS, but a problem occurred.
I tried to use meshio code to convert it:
**import meshio
Load the GMSH .msh file
mesh = meshio.read("C:\Users\86159\Desktop\Converting GMSH to ANSYS\Traial_2\Basement_1.msh")
Convert the mesh to an ANSYS mesh file
meshio.write("Basement_1.inp", mesh, file_format="ansys")**
but I got this error:
**PS C:\Users\86159> & C:/Users/86159/AppData/Local/Programs/Python/Python311/python.exe "c:/Users/86159/Desktop/Converting GMSH to ANSYS/Traial_2/Traial_2.py"
Traceback (most recent call last):
File "C:\Users\86159\AppData\Local\Programs\Python\Python311\Lib\site-packages\meshio\ansys_ansys.py", line 445, in write
ansys_cell_type = meshio_to_ansys_type[cell_type]
Beta Was this translation helpful? Give feedback.
All reactions