salomeToElmer - export Salome mesh to Elmer

Discussion about coding and new developments

salomeToElmer - export Salome mesh to Elmer

Postby 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
vencels
 
Posts: 23
Joined: 20 Sep 2016, 17:05
Location: Latvia

Re: salomeToElmer - export Salome mesh to Elmer

Postby 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
RaJa
 
Posts: 60
Joined: 22 Oct 2014, 09:48

Re: salomeToElmer - export Salome mesh to Elmer

Postby 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.
vencels
 
Posts: 23
Joined: 20 Sep 2016, 17:05
Location: Latvia

Re: salomeToElmer - export Salome mesh to Elmer

Postby 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
c_prabal
 
Posts: 3
Joined: 25 Oct 2010, 03:35

Re: salomeToElmer - export Salome mesh to Elmer

Postby 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
mzenker
 
Posts: 1705
Joined: 07 Dec 2009, 11:49
Location: Germany


Return to Software development

Who is online

Users browsing this forum: No registered users and 1 guest