nschloe / meshio

:spider_web: input/output for many mesh formats
MIT License
1.97k stars 405 forks source link

ANSYS Fluent .msh files #77

Closed VKheyfets closed 7 years ago

VKheyfets commented 7 years ago

Hello,

Does the meshio support ANSYS Fluent .msh files? The documentation says that it does, but it looks like it only supports .gmsh files by the in the _init.py.

Thank You,

Vitaly

nschloe commented 7 years ago

Wait, where does it say that ANSYS files are supported? That should be fixed, because they aren't.

VKheyfets commented 7 years ago

Well it does not say that explicitly, but the README file says that it can do *.msh file formats, which is the mesh file for ANSYS Fluent. The example also says: "meshio-convert input.msh output.vtu." I'm not familiar with Gmsh, so I am not sure if .msh is also an extension for that software.

That makes sense since the init.py file only has gmsh.

gdmcbain commented 7 years ago

I think the .msh extension has been used for a few different things over the years, it's kind of an obvious one, especially if working under an environment mandating three-letter extensions. A third example is the one used by FreeFem++, defined in Table 5.1 ‘The structure of “mesh sample.msh”’ of the FreeFem++ manual, v. 3.48.

Where meshio's README.md lists the formats, including MSH, each is a link to a definition, MSH linking to http://geuz.org/gmsh/doc/texinfo/gmsh.html#File-formats . That's some indication which MSH is meant here.

I've proposed a more explicit listing in #78.

nschloe commented 7 years ago

Thanks for PR.

Let's leave this issue open to see how much interest ANSYS meshes attract.

VKheyfets commented 7 years ago

You got one person :-)

certik commented 7 years ago

Yes, that would be useful. I started hacking my own converter, but haven't had time to finish it up.

nschloe commented 7 years ago

Three is a party, so here you go: ANSYS mesh reading is in 1.8.0 (just released).

The only one testing so far is me, so expect rough edges. If something doesn't work as you expect, best file a bug.

VKheyfets commented 7 years ago

Wow ... cool, thanks!

On May 12, 2017, at 5:35 AM, Nico Schlömer notifications@github.com<mailto:notifications@github.com> wrote:

Three is a party, so here you go: ANSYS mesh reading is in 1.8.0 (just released).

The only one testing so far is me, so expect rough edges. If something doesn't work as you expect, best file a bug.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/nschloe/meshio/issues/77#issuecomment-301053844, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZgk3KWnOsujVGergZzRtNVxIS2TuTSiks5r5EPngaJpZM4Mr_aY.

certik commented 7 years ago

Thanks @nschloe, I appreciate it. Unfortunately it can't read my Fluent file, so I submitted #90.

If you are interested, I am happy to help, I would love to have a converter. Let's discuss on the other issue.