pythonsimulationcgns

Package that deals with cgns format?


How to read cgns file contain mesh in python?

I found one package Pymesh but this package only deal with (read/write 2D and 3D mesh in .obj, .ply, .stl, .mesh).

Does anyone knows any package?


Solution

  • If the CGNS file is written with hdf5 (instead of the older ADF versions) you can open them with the python libraries h5py or tables. I use these to read my CGNS files and access them like any other hdf5 file. The same could be said for matlab or any other language... if you can read hdf5 you can read CGNS. I believe CGNS versions 3+ default to hdf5.