Elmer module for Salomé

Discussion about coding and new developments

Re: Elmer module for Salomé

Postby RaJa » 26 Apr 2017, 14:58

New update available:
The Elmer-plugin is now able to read an already existing sif-file that was previously created with the plugin itself. Hence, it is possible to continue working on a simulation without starting all over again.

Have fun,
Rainer
RaJa
 
Posts: 59
Joined: 22 Oct 2014, 09:48

Re: Elmer module for Salomé

Postby raback » 26 Apr 2017, 16:17

Hi Rainer

Great developments!

One hint that you could perhaps utilize: the UNV format as saved with Salome comes with entity names. ElmerGrid can use these names when translating the mesh into Elmer format (with "ElmerGrid 8 2 mesh.unv"). They can be seen then in file mesh.names where the correspondence between names and numbers is to be found.

The nice thing with the names is that it makes it possible to directly refer to the names in Body And Boundary Conditions. So instead of using "Target Boundaries" or "Target Bodies" the "Name" is used directly.

I have only seen a simple demo of your work by Sampo so I cant say whether this would be a good option to follow. The changes in code should at least be rather minimal. When writing the sif you should probably add the "Use Mesh Names = True" on Simulation section to let ElmerSolver know that it should use the names, and drop the definition of target boundaries and bodies that are no longer needed.

There are some tests that use names e.g. ContactPatch3DNames*.

-Peter
raback
Site Admin
 
Posts: 3083
Joined: 22 Aug 2009, 11:57
Location: Espoo, Finland

Re: Elmer module for Salomé

Postby RaJa » 26 Apr 2017, 16:20

Already implemented ;-)

Using Mesh Names was the only way to get it working in Salome. We needed the direct link between the mesh groups in Salome and the corresponding element in Elmer.
RaJa
 
Posts: 59
Joined: 22 Oct 2014, 09:48

Re: Elmer module for Salomé

Postby RaJa » 06 May 2017, 19:18

Guys,

here is a small demo of the plugin.

https://youtu.be/D2-dp4UxblY

Have fun,
Rainer
RaJa
 
Posts: 59
Joined: 22 Oct 2014, 09:48

Re: Elmer module for Salomé

Postby pretzel21 » 17 May 2017, 17:17

Thank you. You all rock. Hugs all around to everyone's awesomeness to pull this together. Thank you. :)
pretzel21
 
Posts: 4
Joined: 01 Aug 2016, 23:45

Re: Elmer module for Salomé

Postby raback » 17 May 2017, 18:37

Hi

This is indeed great! Compared to the previous version it is a great step forward that the main menu does not close. I guess this starts to be usable already. It is also great that you utilize the same XML files that have been written for ElmerGUI. So there is a double motivation to write these files.

Now I would also have a question: does anybody of you know the MED format? Would it make sense that ElmerSolver could read it directly? I've seen examples, such as in YAFEMS, that the library routines could might be quite a small task to add, replacing the native Elmer format - as an alternative at least. MED could provide a better format in terms of interoperability.

A problem could be in partitioning. Do you know whether MED is partitioned, or can be a partitioned format. Often we need particular partitionings, for example, where rotating interfaces are in given partitions. Such special partitionings are probably not well supported so we want to have control over partitioning also in the future.

-Peter
raback
Site Admin
 
Posts: 3083
Joined: 22 Aug 2009, 11:57
Location: Espoo, Finland

Re: Elmer module for Salomé

Postby RaJa » 17 May 2017, 22:34

Thanks for the hugs :)

@Peter
Unfortunately, I cannot help you with the MED-files. Additionally, I cannot see any benefits. In Salome you would have to export the mesh anyway as there is no direct access to Salomes mesh data. We currently have the mesh export directly linked to ElmerGrid. So there is no additional user interaction required.
But I do not know, if this is alos the case when using gmesh. I also do not know, if MED is usable in ParaView as standalone. There is an older thread in the Salome forum that suggests starting ParaView from the Salome bash to have MED-support. But there is no info if this works now without this workaround.
RaJa
 
Posts: 59
Joined: 22 Oct 2014, 09:48

Re: Elmer module for Salomé

Postby mzenker » 18 May 2017, 12:01

Hi,

since the unv format used at the moment for mesh export from Salomé to Elmer does not cover some types of mesh elements (see http://www.elmerfem.org/forum/viewtopic.php?f=15&t=4514), the benefit of the MED format could be

* the possibility to cover more features at mesh export (to be verified),

* the potential to be able to build a solver module which would really integrate Elmer into Salomé.

I had a short discussion on this topic on the Salomé forum last year, see http://salome-platform.org/forum/forum_9/338883075#229274385.
But I am not sure that the benefits would justify the effort to implement the MED format in Elmer. Mesh export could be worth a closer look, but the Elmer integration into Salomé is covered to a large extent by the new plugin.

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

Previous

Return to Software development

Who is online

Users browsing this forum: No registered users and 1 guest

cron