GUI-split-edges the non interactive way?

Mesh generators, CAD programs, and other tools
Post Reply
teobo
Posts: 97
Joined: 07 Sep 2014, 10:41
Antispam: Yes

GUI-split-edges the non interactive way?

Post by teobo »

Hi,
after preparing a multibody (2D) in Salomé as explained in the wiki tutorial and than doing some further preprocessing with ElmerGUI everything seemed fine.
In ElmerGUI I had to do a "devide edges". Now I got stuck in assigning the dirichlet boundary condition non-interactively to a boundary part.
I found out that it was all about the file mesh.boundary. See code below.

Anyway, how can I do it? I thought of either making use of the python interface in Elmer or seek for an pythonable option with Salomé.
What might be the best choice?

Thanks in advance

Edit:
I got as well problems with lauching python
http://www.nic.funet.fi/pub/sci/physics ... Manual.pdf
7.3.1 Python interface
If ElmerGUI has been compiled with PyhthonQt-support, there is a Python
console available for scripting. The console is located under the Edit-menu:
Edit → PythonQt console...
-With compiled ubuntu ElmerGUI I do not find the menu edit. Even says that it were to be found at VTK Postprocessor, but there is no such Item in ubuntu ElmerGUI. As well with Elmer-windows I did find the VTK postprocessor, but no item python console.

-Furthermore: Is it feasible to run ElmerPython from the system's python compiler that way I get the whole processing (Salomé - Elmer - paraview) with 1 script? (that is aim)

Code: Select all

$ diff -w Mesh_1141023_1.2D_2_1d_2_2d/mesh.boundary MeHh_1141023_1.2D_2_1d_2_2db/mesh.boundary_afterGUI_preprocessing
1,22c1,22
< 1 1 12 0 202 9 4
< 2 1 20 0 202 3 9
< 3 1 11 0 202 10 3
< 4 1 1 0 202 2 10
< 5 1 4 30 202 1 11
< 6 1 2 24 202 11 12
< 7 1 1 25 202 12 2
< 8 1 23 0 202 4 13
< 9 1 7 0 202 13 1
< 10 1 26 0 202 14 2
< 11 1 28 0 202 6 14
< 12 1 32 44 202 5 15
< 13 1 33 38 202 15 16
< 14 1 29 39 202 16 6
< 15 1 34 0 202 1 17
< 16 1 35 0 202 17 5
< 17 1 40 0 202 18 6
< 18 1 43 0 202 8 18
< 19 1 16 0 202 7 19
< 20 1 6 0 202 19 8
< 21 1 44 0 202 5 20
< 22 1 42 0 202 20 7
---
> 1 6 4 30 202 1 11 
> 2 8 7 0 202 1 13 
> 3 5 34 0 202 1 17 
> 4 10 1 0 202 2 10 
> 5 6 1 25 202 2 12 
> 6 7 26 0 202 2 14 
> 7 9 20 0 202 3 9 
> 8 10 11 0 202 3 10 
> 9 9 12 0 202 4 9 
> 10 8 23 0 202 4 13 
> 11 3 32 44 202 5 15 
> 12 5 35 0 202 5 17 
> 13 2 44 0 202 5 20 
> 14 7 28 0 202 6 14 
> 15 3 29 39 202 6 16 
> 16 4 40 0 202 6 18 
> 17 1 16 0 202 7 19 
> 18 2 42 0 202 7 20 
> 19 4 43 0 202 8 18 
> 20 1 6 0 202 8 19 
> 21 6 2 24 202 11 12 
> 22 3 33 38 202 15 16 
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: GUI-split-edges the non interactive way?

Post by mzenker »

Hi,

I would create groups in the Salomé mesh (see here) so you don't need to split edges in Elmer.

HTH,

Matthias
Post Reply