[Gmsh] 3D save
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Mon Feb 12 17:42:02 CET 2007
Kubicek Bernhard wrote:
> Maybe your sphere did not mesh in 3d, but only in 2d, and you probably did not notice because you only saw the meshed surface. Check using menu->statistics to see how many/wether tetrahedra exist. Also, under options->mesh, there is an important difference between surface/volume mesh visibilities.
> Gmsh usualy safes meshes in the very straightforward gmsh1 or gmsh2 format (depending on the version), which is (usually) plain text and hence really easy to read from a matlab script, written by e.g. yourself as you probably know best what you finally want to do with it.
PS:
1) all the mesh formats supported by Gmsh are "3D"
2) the p3d format is actually *not* supported anymore (use Gmsh 2.0!)
3) there's a little script in the source distribution (in the
utils/converters/matlab directory) that reads .msh (version 1) files
directly into Matlab.
> Actually, a collegue of mine stopped using Femlab, the moment he saw a speed comparison with GetDP showing a speedup of factor approx 10-30. Not to forget about quite insane price of Femlab.
>
> nice greetings,
> bernhard
> -----Ursprüngliche Nachricht-----
> Von: gmsh-bounces at geuz.org [mailto:gmsh-bounces at geuz.org] Im Auftrag von Ehsan Vaghefi
> Gesendet: Montag, 12. Februar 2007 01:38
> An: gmsh at geuz.org
> Betreff: [Gmsh] 3D save
>
>
> Hi Guys
>
> I am trying to create a 3D mesh of a sphere. it looks good in GMSH but when I save it in MSH format, it just saves the surface of the mesh and the p3d format (which seems to be the only 3D format GMSH supports) is not working.
>
> How can I save the 3D mesh with all the nodes and elements so I could open it again later in MATLAB ?
>
> cheers. Ehsan
>
> _______________________________________________
> 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