Meshio error on export to nastran - Salome 9.13 Windows

Hi.
I was trying to export mesh to Nastran without success. It seems that *.dat files are not readable by Nastran and when I tried to export using meshio every time I’m getting the same error. I’m not a programmer and I don’t know what to do with it. Could you help me please?
2024-09-30_095355

1 Like

Hi,

open the file _nastran.py located in the path shown in the error message. Line 413, set precision to 9 instead of 11.

Christophe

Hi. This solves one of the issues. List is shorter now, error still remains.
2024-09-30_203138

I tried some other formats. The mesh is being exported without any issues. But the only format I need is Nastran.

Hi,

edges with 3 nodes were not managed. Please find an updated _nastran.py that:

  • add BEAM3 element
  • skip not managed elements types (instead of raising an error)
  • decrease precision only if needed (instead of harcoding it to 9 as I answered before).

If you don’t need BEAM3 elements you can also remove all edges of your mesh by:

  • creating a group of edges and tick “select all”
  • right-click on the group> “Delete groups with contents”

Christophe

Thank you, Christophe, your changes seem to solve the problem. I need to confirm that with a friend of mine. I’ll let you know if he had any issues importing the mesh.