2010/6/16 Luis Casillas <[email protected]>:
> Hi,
> I have tried with the MEDIT format,
> I did it for 3D and no problem, but I need the 2D case,
> I have gmsh 2.4.2 for mac,
> I do,
> gmsh -3 -format mesh -string 'Mesh.SaveElementTagType=2;' file.geo
> then I run the 3to2.awk (thanks for the code)
> import to freefem with readmesh, but no luck
> thanks
> Luis

Oh.  I think the dimension flag should be -2 rather than -3 for plane
problems, although if there aren't any volumes in your geometry that
shouldn't matter.

Anyway, try the following example; FreeFem++ seems happy enough with
it.  Besides the three input files (oblong.geo for Gmsh, 3to2.awk for
Gawk, and oblong.edp for FreeFem++), I also attach a picture of the
mesh as plotted by FreeFem++.

gmsh -2 -format mesh -string 'Mesh.SaveElementTagType=2;' -o
oblong.3.mesh oblong.geo

gawk -f 3to2.awk oblong.3.mesh > oblong.mesh

FreeFem++-nw oblong.edp

Attachment: oblong.geo
Description: Binary data

Attachment: 3to2.awk
Description: Binary data

Attachment: oblong.edp
Description: Binary data

<<attachment: oblong.Th.png>>

_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

Reply via email to