mrklein / p3d2gmsh

Convert NASA's Plot3D mesh format into Gmsh's MSH format
MIT License
29 stars 20 forks source link

Windows 10 + Python 3 : Code Not Working #5

Open haivijayanand opened 4 years ago

haivijayanand commented 4 years ago

Hi Mr.Mrklein, I tried to use your code on windows machine with python 3 environment.

I get the following error

E:\CONSTRUCT2D\Construct2D_2.1.4>p3d2gmsh3.py -m 64a612.nmf 64a612.p3d Traceback (most recent call last): File "E:\CONSTRUCT2D\Construct2D_2.1.4\p3d2gmsh3.py", line 55, in FILE PyBytes_AsFile(PyObject p) NameError: name 'PyBytes_AsFile' is not defined

Kindly look into the issue please

K Vijay Anand

haivijayanand commented 4 years ago

p3d2gmsh3.zip

This is the code, i tried to convert to python 3. Any help is highly appreciated...

mrklein commented 4 years ago

I have pushed 8f9f0517a3a194888c9469f9bdc7be3d232dcf62, which

haivijayanand commented 4 years ago

Dear Mr.Mrklein, Thank you very much for your time and efforts. My intention is to make the grid to run in Ansys Fluent Software. I will check the compatibility with ICEM CFD Grid Software, after converting my CONSTRUCT2D grid to gmsh. . . Regards, K Vijay Anand

I have attached the Fluent .msh file format just for your reference... appb.pdf

mrklein commented 4 years ago

Fluent's .msh is completely different from Gmsh's .msh format. Since there is a way to import Gmsh mesh into Fluent (for example, https://www.cfd-online.com/Forums/openfoam-meshing/81841-gmsh-fluent.html), I do not see the point in implementing conversion to Fluent's format.