import group names from salome unv

The graphical user interface of Elmer
Post Reply
Wil
Posts: 72
Joined: 10 Jan 2014, 13:26
Antispam: Yes
Location: Austria

import group names from salome unv

Post by Wil »

Hallo,

I generate my mesh with salome. There, I create groups of bodies and boundaries which I save as unv and convert via ElmerGrid to import them into ElmerGUI (using 'ElmerGrid 8 2 Mesh_1.unv -autoclean').
This works basically great, but I would like to know If it is possible to transfer the names set in salome to ElmerGUI.
After I run ElmerGrid on the unv file exported from salome a file named 'mesh.names' created holding all relevant data as can be seen in the following listing. The names like 'Group_copper' were set in salome. (Simply changing the numbers on the right to text does not work to see the names in ElmerGUI=) ):

Code: Select all

! ----- names for bodies -----
$ Group_copper = 1
$ Group_air = 2
! ----- names for boundaries -----
$ Group_10V = 1
$ Group_-10V = 2
$ Group_force_faces = 3
$ bnry6 = 4
How is it possible to get the names from for bodies and boundaries set in salome into ElmerGUI? It seems that the needed information is generated by ElmerGrid while converting the unv but it is not used from ElmerGUI.

BR,
Wil
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: import group names from salome unv

Post by raback »

Hi

Yes, at the moment ElmerGUI ignores the mesh names.

The feature is intended partly to help people who don't use ElmerGUI. When setting in Simulation section

Code: Select all

Use Mesh Names = Logical True
The user may use the names as in

Code: Select all

Boundary Condition 1 
  Name = "inlet"
  Velocity 1 = 1.23
End 
without need to refer to the actual numbers in Target Boundaries.

-Peter
Post Reply