[Gmsh] Big regression in MED format writing

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Nov 28 20:06:23 CET 2016


> On 28 Nov 2016, at 17:32, TARDIEU Nicolas <nicolas.tardieu at edf.fr> wrote:
> 
> Hi Christophe,
> 
> It seems to me that the right order should be : 
> - for MED_HEXA20: map[20] = {0,1,2,3,4,5,6,7,8,11,13,9,10,12,14,15,16,18,19,17 };
> 
> - for MED_HEXA27: map[27] = {0,1,2,3,4,5,6,7,8,11,13,9,10,12,14,15,16,18,19,17,20,21,23,24,22,25,26};
> 

Doesn't seem to work... I found this in the MED doc



which (if I understand correctly), would translate into

map[20] = {0, 3, 2, 1, 4, 7, 6, 5, 9, 13, 11, 8, 17, 19, 18, 16, 10, 15, 14, 12};
map[27] = {0, 3, 2, 1, 4, 7, 6, 5, 9, 13, 11, 8, 17, 19, 18, 16, 10, 15, 14, 12, 20, 22, 24, 23, 21, 25, 26};

But this also does not work (I've committed this to SVN) - not sure where I made the mistake...

Christophe


> I can test a nightly build as soon as you integrate this patch.
> 
> Regards,
> Nicolas
> 
> 
> Nicolas Tardieu
> Ingénieur Chercheur 
> Groupe Vibrations des Structures - T63
> EDF - R&D Dpt AMA
> nicolas.tardieu at edf.fr
> Tél. : 01 78 19 37 49
> 
> 
> 
> 
> -----Message d'origine-----
> De : cgeuzaine at ulg.ac.be [mailto:cgeuzaine at ulg.ac.be] 
> Envoyé : samedi 26 novembre 2016 18:55
> À : TARDIEU Nicolas
> Cc : gmsh at geuz.org
> Objet : Re: [Gmsh] Big regression in MED format writing
> 
> 
> Hello Nicolas,
> 
> Indeed! But I'm not sure this has worked in the past...
> 
> The correspondance between Gmsh/MED vertices is located in gmsh/Geo/GModelIO_MED.cpp:
> 
> - for MED_HEXA20: map[20] = {0, 3, 2, 1, 4, 7, 6, 5, 11, 8, 16,
>                             10, 19, 9, 18, 17, 15, 12, 14, 13};
>  this seems to be identical to when it was first implemented...
> 
> - for MED_HEXA27: it's actually not implemented ;-)
> 
> Could you check the ordering?
> 
> Thanks,
> 
> Christophe
> 
>> On 17 Nov 2016, at 10:06, TARDIEU Nicolas <nicolas.tardieu at edf.fr> wrote:
>> 
>> Dear Gmsh-team,
>> 
>> I have noticed a big regression in the quadratic hexa writing in MED format. This can checked by re-reading with Gmsh a MED file produced by Gmsh! The hexa is totally twisted!
>> The error appears for the complete and incomplete elements.
>> 
>> Regards,
>> Nicolas
>> <cube.geo><cube-hexa20.med><cube-hexa27.med>
>> 
>> 
>> Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.
>> 
>> Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.
>> 
>> Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
>> ____________________________________________________
>> 
>> This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.
>> 
>> If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.
>> 
>> E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
>> 
>> _______________________________________________
>> 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
> 
> 
> 
> 
> Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.
> 
> Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.
> 
> Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
> ____________________________________________________
> 
> This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.
> 
> If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.
> 
> E-mail communication cannot be guaranteed to be timely secure, error or virus-free.

-- 
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/20161128/7da64497/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hexaedre2.gif
Type: image/gif
Size: 27424 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20161128/7da64497/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hexaedres.gif
Type: image/gif
Size: 14893 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20161128/7da64497/attachment-0003.gif>


More information about the gmsh mailing list