[Gmsh] generate v2 mesh from python API

Christophe Geuzaine cgeuzaine at uliege.be
Tue Feb 12 16:05:18 CET 2019

> On 12 Feb 2019, at 15:47, Curti, M. <M.Curti at tue.nl> wrote:
> Dear gmsh community,
> Is it possible to generate the msh file with the old v2 version using the gmsh v4 API  for python? If yes, then how?

Sure: just do

gmsh.option.setNumber("Mesh.MshFileVersion", 2.)

or even simpler:



> Regards,
> Mitrofan
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 

More information about the gmsh mailing list