[Gmsh] save mesh with geo file
David Colignon
david.colignon at ulg.ac.be
Wed Dec 9 13:49:36 CET 2015
On 08/12/15 18:19, Bernd Hahnebach wrote:
> Found myself it is possible to get the saved mesh file by running gmsh from win comand promt or linux shell by
>
> windows:
> cd C:\Users\bhb\Desktop\gmsh-mit-geo
> C:\Daten\gmsh-2.10.0-Windows\gmsh.exe -3 femmesh.geo
>
> linux:
> gmsh -3 femmesh.geo
>
> It is possible to open a geo and with "Mesh 3;" immedately mesh the geometry. In adition I would like to save the femmesh.unv at
> the same process while open the femmesh.geo from gui. I could not found an option for that at the tutorials page of gmsh.
>
> bernd
>
>
> again the content of femmesh.geo:
>
> Merge "box.step"; // some simple box
> Mesh.Format = 2
> Mesh.SaveAll = 1
> // some line to save the unv file ?
Hi,
use:
Save "mymesh.unv";
see https://geuz.org/gmsh/doc/texinfo/gmsh.html#index-Save-char_002dexpression_003b
Regards,
Dave
--
David Colignon, Ph.D.
1er Logisticien de Recherche
Université de Liège
ACE - Applied & Computational Electromagnetics
Quartier POLYTECH 1 - Montefiore B28
Allée de la découverte 10
4000 Liège - BELGIQUE
Tél: +32 (0)4 366 37 32
http://www.ulg.ac.be/nic4
>
> -----------------------------------------------------------
>
>
> Zitat von Bernd Hahnebach <gmsh at b75.ch>:
>
>> Hi gmsh users,
>>
>> I have a simple geo file to mesh some step geometry. How do I save the mesh file to disk ?
>>
>> bernd
>>
>>
>>
>> Merge "box.step";
>>
>> Mesh.Algorithm3D = 5;
>> // 1=Delaunay, 4=Frontal, 5=Frontal Delaunay, 6=Frontal Hex, 7=MMG3D, 9=R-tree
>> // default = 1
>>
>> //Mesh 2; // surface
>> Mesh 3; // volume
>>
>> Mesh.Format = 2;
>> // 1=msh, 2=unv, 10=automatic, 19=vrml, 27=stl, 30=mesh, 31=bdf, 32=cgns, 33=med, 40=ply2
>> // default = 10
>>
>> Mesh.SaveAll = 1;
>> // Ignore Physical definitions and save all elements
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> gmsh mailing list
>> gmsh at geuz.org
>> http://www.geuz.org/mailman/listinfo/gmsh
>>
>
>
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh