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

[BUG] Unable to convert medit mesh to SU2 #1419

Open
casfra96 opened this issue Jul 3, 2023 · 0 comments
Open

[BUG] Unable to convert medit mesh to SU2 #1419

casfra96 opened this issue Jul 3, 2023 · 0 comments

Comments

@casfra96
Copy link

casfra96 commented Jul 3, 2023

Describe the bug
When I try to convert any medit mesh to SU2 I receive the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/meshio/_helpers.py", line 188, in write
    return writer(filename, mesh, **kwargs)
  File "/meshio/su2/_su2.py", line 340, in write
    for index, (cell_type, data) in enumerate(mesh.cells):
TypeError: cannot unpack non-iterable CellBlock object

The error occurs when writing the SU2 mesh. In particular, after having written all the elements of the internal volume, when it has to start writing the surface elements for each tag, the execution stops and gives the error.

I believe the error is not with converting the medit format to SU2 format, just with writing a SU2 mesh.

To Reproduce

Just write a SU2 mesh with any tags.

mesh = meshio.read("input.mesh")
meshio.write("output.su2", mesh)
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