salomeToElmer - export Salome mesh to Elmer

Discussion about coding and new developments
Post Reply
vencels
Posts: 23
Joined: 20 Sep 2016, 17:05
Antispam: Yes
Location: Latvia
Contact:

salomeToElmer - export Salome mesh to Elmer

Post by vencels » 10 May 2017, 13:35

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

RaJa
Posts: 60
Joined: 22 Oct 2014, 09:48
Antispam: Yes

Re: salomeToElmer - export Salome mesh to Elmer

Post by RaJa » 11 May 2017, 15:48

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

vencels
Posts: 23
Joined: 20 Sep 2016, 17:05
Antispam: Yes
Location: Latvia
Contact:

Re: salomeToElmer - export Salome mesh to Elmer

Post by vencels » 11 May 2017, 16:35

Yes, it keeps names of domains and boundaries.
It would be nice to put it in your Salome plugin.

c_prabal
Posts: 3
Joined: 25 Oct 2010, 03:35

Re: salomeToElmer - export Salome mesh to Elmer

Post by c_prabal » 20 Apr 2018, 17:27

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

mzenker
Posts: 1729
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: salomeToElmer - export Salome mesh to Elmer

Post by mzenker » 23 Apr 2018, 11:16

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

Post Reply