Page 7 of 7

Re: Elmer module for Salomé

Posted: 26 Apr 2017, 14:58
by RaJa
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

Re: Elmer module for Salomé

Posted: 26 Apr 2017, 16:17
by raback
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

Re: Elmer module for Salomé

Posted: 26 Apr 2017, 16:20
by RaJa
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.

Re: Elmer module for Salomé

Posted: 06 May 2017, 19:18
by RaJa
Guys,

here is a small demo of the plugin.

https://youtu.be/D2-dp4UxblY

Have fun,
Rainer

Re: Elmer module for Salomé

Posted: 17 May 2017, 17:17
by pretzel21
Thank you. You all rock. Hugs all around to everyone's awesomeness to pull this together. Thank you. :)

Re: Elmer module for Salomé

Posted: 17 May 2017, 18:37
by raback
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

Re: Elmer module for Salomé

Posted: 17 May 2017, 22:34
by RaJa
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.

Re: Elmer module for Salomé

Posted: 18 May 2017, 12:01
by mzenker
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 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_ ... #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

Re: Elmer module for Salomé

Posted: 06 Dec 2017, 22:23
by axjjienn
Can someone link the Salome-Elmer plug-in so I can try to get it working?

Documentation would also be helpful...

Re: Elmer module for Salomé

Posted: 07 Dec 2017, 00:47
by mzenker
Hi,

you will find information and a download link on the Salomé plugin here: http://elmerfem.org/forum/viewtopic.php?f=9&t=4482. You can also have a look at the models part of the ElmerGUI manual, almost all dialogs you find there are also in the Salomé module.
Don't hesitate to ask if you encounter any problems.

Matthias