Skip to content

Assigning PART IDs in LS-DYNA keyword file from Gmsh mesh file

Hi Christophe,

I hope you are doing well. I'm using Gmsh to create my meshes and I'm writing the code in Python scripts. In my codes, I'm using naming convention, like "zero-filament" or "matrix", to refer to my volumes, surfaces, Physical volumes etc. However, when I'm converting my meshes to key-format for LS-Dyna (FEM.key), the names of the volumes automatically changed to large numbers, like 3009837, i.e, in my FEM.key file the PART IDs are assigned as 3009837.

The issue is I don't want to use such long numbers as PART IDs in FEM.key. Is there any way I could assign PART IDs as '1', '2', '3' etc?