[Gmsh] How to export grid data to atxt file?
Jeff Borggaard
jborggaard at vt.edu
Sat Apr 2 18:36:11 CEST 2011
After using "save" to generate a .msh file, these two matlab functions
should work for you.
On Fri, Apr 1, 2011 at 1:41 PM, Esad Tombarevic
<esadtombarevic at gmail.com> wrote:
> Dear Cristophe Geuzaine and Jean-Francois Remacle,
>
> I have downloaded your mesh generator gmesh from your website, and playing
> with it for a while.
> I am trying to find the option how to export grid data to a .txt file which
> I can use to import grid data in Matlab or Fortran.
> Under grid data I mean:
> for 2D grid of triangles - x and y coordinates of points, and number of
> points that makes triangles.
> for 3D grid something similar - x, y and z coordinates of points and number
> of points that makes tethraedrons.
>
> And also points on boundaries...
>
> Is it possible at all?
>
> Best regards,
>
> Esad Tombarevic
> Faculty of Mechanical Engineering, University of Montenegro
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
>
>
--
Jeff Borggaard
Department of Mathematics
Interdisciplinary Center for Applied Mathematics
Virginia Tech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twod_read_msh.m
Type: application/octet-stream
Size: 3718 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20110402/94c90227/attachment.m>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: threed_to_gmsh.m
Type: application/octet-stream
Size: 2379 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20110402/94c90227/attachment-0001.m>