This is a question about exporting a mesh as an Abaqus inp file. I created a box and exploded it to get its six faces. Then I created a group including the first face, under the Geometry module. Then I switched to the Mesh module, created a mesh, computed, and created a group from geometry. When I exported the mesh in inp format, I found that the elements in the group were not exported. The only way I currently figured out is to export the group manually. I think this is not very convenient.
Previously, I used gmsh. In gmsh, I can create a physical group. The elements in the group can be exported in a separate block in an inp file. Can I also do this or something similar using Salome? I don’t want to create multiple mesh files.
There is ongoing work to improve the export of mesh physical groups. Until this work is reviewed and integrated into SALOME, here is a possible workaround.
In SALOME, create your mesh and all the required groups.
Then export the complete mesh as a MED file.
Finally use GMSH to read the MED file and export it to the desired format (for example, the Abaqus .inp format, which seems to be supported), and verify that the physical groups are correctly preserved.
Try exporting it manually, then create a Python dump file to look at how SALOME is handling the individual export. If you are able to do it manually, you should be able to see that in the script file. Once you have it, it should be easy to automate it.
Thank you for your relpy. Yes, the only way I figured out is to manually export the mesh for each group. The dumped script indeed recorded my operations.