[Gmsh] ASCII mesh format

Christophe Geuzaine geuzaine at gmail.com
Sat Apr 14 19:03:15 CEST 2018



> On 13 Apr 2018, at 11:48, Yoann LE BARS <yoann at le-bars.net> wrote:
> 
> 
> Hello everybody out there!
> 

Hi Yoann,

>     After further investigations, it turns out that tools from SLIM are producing files on MSH format version 3, while WaveWatch 3 is using MSH format version 2. I will probably modify WaveWatch 3 to make it accept version 3 format, but before I need to convert files from version 3 to version 2. Therefore, my questions are:
> 
> Where can I find the description of MSH format version 3?
Version 3 was never officially released/documented. Gmsh 4.0 will introduce a much more efficient version 4 format.

> Is there any script converting from version 3 to version 2?
You can simply load the mesh in Gmsh, and save it in version 2. You can do this with the GUI, in a .geo script, or directly on the command line:

gmsh v3.msh -save -o v2.msh

Christophe

>     Anyway, I have started some code to convert files (code attached to this message), but without version 3 description, I am a bit stuck.
> 
>     Best regards.
> 
> -- 
> Yoann LE BARS
> http://le-bars.net/yoann <http://le-bars.net/yoann>
> *Diaspora : ylebars at framasphere.org <mailto:ylebars at framasphere.org><convertmsh.py>_______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180414/2f9b42b9/attachment.html>


More information about the gmsh mailing list