[Gmsh] Create mesh using command line

DILASSER Guillaume Guillaume.DILASSER at cea.fr
Mon Jan 23 09:50:40 CET 2017

Hello Thomas,

You can use the following command line : gmsh <name_of_your_geo_file.geo> -2 <-o name_of_the_output_file>. “-2” is equivalent to using the Mesh 2D command from the UI, additionnaly you can specify the desired .msh output file name with the –o switch.

Hope this was helpful,

Guillaume Dilasser

De : gmsh [mailto:gmsh-bounces at ace20.montefiore.ulg.ac.be] De la part de Thomas Charles Reading Moore
Envoyé : lundi 23 janvier 2017 08:15
À : gmsh at geuz.org
Objet : [Gmsh] Create mesh using command line

I have a .geo file which I'd like to create a .msh file from. My current procedure is

 - open the .geo file using the termianl
 - Select 2D mesh in the GUI
 - save the .msh file.

Is there a way to do this (tedious) process via the command line? I'm using a Macbook Pro if that's relevant.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20170123/7432f844/attachment-0001.html>

More information about the gmsh mailing list