[Gmsh] MSH file format

Christophe Geuzaine cgeuzaine at uliege.be
Wed Sep 12 22:23:56 CEST 2018



> On 12 Sep 2018, at 16:45, Rémi Mahouas <remi.mahouas at onera.fr> wrote:
> 
> Hello,
> 
> I am writing to you because we need some help about the MSH file format. I explain our problem : we use a script that requires a .msh file format in version 2 (or 2.2) and not in version 4. We have seen in the PDF Documentation of GMSH (in the Chapter 9 "File formats" page 107) that "The format has a version number that is independent of Gmsh’s main version number". Indeed, we tried to create .msh file format in version 2 with GMSH V2.8.4 and with GMSH V4 and the result is the same : the .msh file created is in format 4 and not in format 2 as we would like... But, several weeks ago, we tried to create a .msh file in format version 2...
> 
> Our question is : how can we "force" GMSH to create .msh file in format version 2 ?

In the GUI : File->Export ; enter a filename.msh ; choose the version you want.

On the command line : "gmsh file.geo -format msh2"

In a script : Mesh.MshFileVersion = 2.2;

You can also save this in your default options ; this way you will always save in format 2.


> What is the element in the GMSH software that choose the file format (because GMSH V2.8.4 is an old version but it create .msh file in format 4 that I suppose it is a most recent format that doesn't exist when GMSH V2.8.4 was released) ?
> 
> Please help us on this. Thank you.
> 
> Best regards,
> 
> --
> 
> <066a7656.gif>Rémi Mahouas
> Ingénieur d'essais
> Département matériaux et structures
> Élaboration et Techniques de Contrôle des Composites
> Tél: +33 1 80 38 61 23
> 
> ONERA - The French Aerospace Lab - Centre de Palaiseau
> Chemin de la Hunière - BP 80100 - 91123 PALAISEAU CEDEX
> 
> Nous suivre sur : www.onera.fr | Twitter |  LinkedIn | Facebook
> 
> 
> Avertissement/disclaimer https://www.onera.fr/en/emails-terms
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info




More information about the gmsh mailing list