Page 1 of 1

salomeToElmer - export Salome mesh to Elmer

Posted: 10 May 2017, 13:35
by vencels
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

Re: salomeToElmer - export Salome mesh to Elmer

Posted: 11 May 2017, 15:48
by RaJa
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

Re: salomeToElmer - export Salome mesh to Elmer

Posted: 11 May 2017, 16:35
by vencels
Yes, it keeps names of domains and boundaries.
It would be nice to put it in your Salome plugin.

Re: salomeToElmer - export Salome mesh to Elmer

Posted: 20 Apr 2018, 17:27
by c_prabal
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

Re: salomeToElmer - export Salome mesh to Elmer

Posted: 23 Apr 2018, 11:16
by mzenker
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