[Gmsh] gmsh ASCII file version for EDF Syrthes 4.3

Christophe Geuzaine cgeuzaine at uliege.be
Sun Mar 4 12:04:37 CET 2018



> On 4 Mar 2018, at 09:37, Alessio Nava <alessionava.nava17 at gmail.com> wrote:
> 
> MSH3 would then save 10 for a partitioned mesh, right?
> 

For partitioned meshes, MSH2 and MSH3 would save a variable number of integers, depending on the number of partitions an element belongs to (due to ghost cells). 

> When was MSH3 approximately released as file version?

MSH3 has actually never been released - I would not use it. We will continue to support MSH2; but we will eventually switch to MSH4.

> To understand if the code may have been written with that in mind, even if it has never been a default option. 
> 
> Il 04 mar 2018 08:29, "Christophe Geuzaine" <cgeuzaine at uliege.be <mailto:cgeuzaine at uliege.be>> ha scritto:
> 
> 
>> On 3 Mar 2018, at 18:45, Alessio Nava <alessionava.nava17 at gmail.com <mailto:alessionava.nava17 at gmail.com>> wrote:
>> 
>> Dear all,
>> 
>> I would like to use gmsh meshes in Syrthes, which is a thermal solver written by EDF. They have a tool called convert2syrthes4 which converts the gmsh file to their own mesh file .syr.
>> 
>> Inspecting the .syr file, I see that the elem references are shifted. I have tracked down the problem to this line in lecture_msh.c for a 4 node tetrahedron for example :
>> 
>> sscanf(chaine, "%i %i %i %i %i %i %i %i %i %i", &entier1, &entier2, &entier3, &couleur, &entier5, &entier6,
>> 	                          &(elem_tetraedre[tetraedreP1][0]),
>> 	                          &(elem_tetraedre[tetraedreP1][1]),
>> 	                          &(elem_tetraedre[tetraedreP1][2]),				  
>> 	                          &(elem_tetraedre[tetraedreP1][3]));
>> 
>> Question: which is the gmsh file version which works with this sscanf? They are execting 10 params, but I only have 9 in gmsh 3.0.6. 
>> 
> 
> By default, none : MSH1 and MSH2 save 9 integers and (undocumented) MSH3 saves 8 for a 4-node tetrahedron. (MSH4, which will become the default in the upcoming Gmsh 4.0 release, will only save 5 - as it saves elements per geometrical entity.)
> 
>> I was thinking about setting the right: Mesh.MshFileVersion = X.Y;
>> 
>> Can anyone please help me?
>> -- 
>> Distinti Saluti.
>> 
>> Alessio Nava
>> _______________________________________________
>> gmsh mailing list
>> gmsh at onelab.info <mailto:gmsh at onelab.info>
>> http://onelab.info/mailman/listinfo/gmsh <http://onelab.info/mailman/listinfo/gmsh>
> 
>> Prof. Christophe Geuzaine
> University of Liege, Electrical Engineering and Computer Science 
> http://www.montefiore.ulg.ac.be/~geuzaine <http://www.montefiore.ulg.ac.be/~geuzaine>
> 
> Free software: http://gmsh.info <http://gmsh.info/> | http://getdp.info <http://getdp.info/> | http://onelab.info <http://onelab.info/>
> _______________________________________________
> 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

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


More information about the gmsh mailing list