[Gmsh] How transforming elementary entities to physical groups?

Konstantinos Poulios logari81 at googlemail.com
Tue Feb 16 20:19:20 CET 2010


Hi!

On Thu, Feb 11, 2010 at 2:24 PM, Pierre JUILLARD
<pierre.juillard at gmail.com> wrote:
>
> Hi everybody!
>
> I am interested in converting a Nastran mesh to MED file and gmsh seems
> pretty the good tool for that!
> However, when I read the nastran file, all my "parts" are stored as
> elementary entities (see enclosed picture).
> Thus nothing is exported to the MED format.

After pressing ok in the save as dialog, you get an option "Save all
(ignore physical groups)". Isn't that the right option for you?

>
> How can I change my elementary entities into physical groups?
>
> I did it by hand modifying the file in a text editor using gmsh file format
> (I had to change the content of a column element per element (elementary
> entities index being in column 5 and physical group index in column 4, I
> duplicated the elementary entities index column) using a macro...): it is
> do-able, but only for a small number of groups...
> For larger files, I would like to know if there is a "turn-key" option
> allowing this.
>
> I thank you in advance for your help!
>
> Regards,
>
> Pierre
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
>
>

Regards
Kostas