Hi,
I have written a script to export Salome mesh to Elmer.
https://github.com/jvencels/salomeToElmer
Typically users export Salome mesh in .unv format and then import it into Elmer. The problem is that .unv format does not support pyramids (5 nodal elements). These elements typically arise in mixed tetra and hexa 3D meshes.
I was looking for existing solutions but did not find any. Therefore decided to write salomeToElmer script to export mesh directly to Elmer's native mesh.* format.
It is barely tested so let me know if any suggestions and/or problems.
Cheers,
Juris
salomeToElmer - export Salome mesh to Elmer
Re: salomeToElmer - export Salome mesh to Elmer
Does your script maintain the naming of the mesh and mesh groups? If so, I could incorporate your script into my Salome plugin the emulates the Elmer GUI.
Thanks,
Rainer
Thanks,
Rainer
Re: salomeToElmer - export Salome mesh to Elmer
Yes, it keeps names of domains and boundaries.
It would be nice to put it in your Salome plugin.
It would be nice to put it in your Salome plugin.
Re: salomeToElmer - export Salome mesh to Elmer
I tried to export and load it in Elmer 8.2 GUI. It failed. I am attaching salome file. It is not accepting hdf files.
Prabal
Prabal
Re: salomeToElmer - export Salome mesh to Elmer
Hi,
.hdf is the format for Salomé studies. An exported mesh has the format .unv, or, if in Elmer format, it has several files called mesh.boundary, mesh.elements, mesh.header, mesh.nodes. The mesh export is in the mesh module if you select the mesh in the tree view and do a rightclick, or activate the script.
HTH,
Matthias
.hdf is the format for Salomé studies. An exported mesh has the format .unv, or, if in Elmer format, it has several files called mesh.boundary, mesh.elements, mesh.header, mesh.nodes. The mesh export is in the mesh module if you select the mesh in the tree view and do a rightclick, or activate the script.
HTH,
Matthias