[Gmsh] Physical entity as element tag in .bdf file import
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Tue Mar 12 07:27:08 CET 2013
On 06 Mar 2013, at 07:29, jean pierre aubry <jeanpierre at lamachine.fr> wrote:
> hello
>
> when importing a .bdf and saving it as .msh i get the following type of
> line in the $Element section
> 54727 3 2 0 37 63480 63476 63477 1399
> where all first tags are set at 0
>
> where i want the first tag to be a physical, number 37 in this case,
> something like this
> 54727 3 2 37 37 63480 63476 63477 1399
>
Hi Jean-Pierre - I would do it like this: simply load the bdf and define a physical group for each elementary group:
Merge "file.bdf";
surfs[] = Surface "*";
For i In {0 : #surfs[] - 1}
Physical Surface(surfs[i]) = surfs[i];
EndFor
Save "file_with_physicals.msh";
> i did this job with a bit of patience, with conditional find an replace
> in the .msh file up to now but this post opens my mind
>
> http://www.geuz.org/pipermail/gmsh/2013/007959.html
>
> any idea about how to it at import time
>
> jean pierre aubry
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine