[Gmsh] Visualising point data imported from MED files

Christophe Geuzaine geuzaine at gmail.com
Thu May 17 21:36:03 CEST 2018


HI Tomasz,

I'm not sure that we have actually tested it, but looking back at our MED reader we should handle the case. Don't hesitate to send your tentative MED files with point elements in them - we'll have a look.

Ch.

> On 17 May 2018, at 21:32, Tomasz Koziara <t.koziara at gmail.com> wrote:
> 
> Ha, ha:) I tried that, but failed, for the time being:) I only have the examples distributed with MED library to provide inspiration; That was the code:
> 
> std::vector<med_int> conn;
> for (i = 0; i < num; i ++)
> {
>   conn.push_back(i);
> }
> 
> ASSERT (MEDmeshElementConnectivityWr(fid, meshName, MED_NO_DT, MED_NO_IT, 0., MED_CELL, MED_POINT1,
>         MED_NODAL, MED_FULL_INTERLACE, conn.size(), &conn[0]) >= 0, "Could not write MED elements");
> 
> which is just a minor modification of the standard output for volumetric elements; do feel free to advice on a more suitable way of doing that:) Thank You; Tomek
> 
> On 17 May 2018 at 21:09, Christophe Geuzaine <geuzaine at gmail.com <mailto:geuzaine at gmail.com>> wrote:
> 
> Gmsh displays all meshes and post-processing data based on elements: so indeed you will need to add "point elements" (1 point for each vertex) in the med file in order to visualize it.
> 
> Christophe
> 
> 
>> On 17 May 2018, at 14:56, Tomasz Koziara <t.koziara at gmail.com <mailto:t.koziara at gmail.com>> wrote:
>> 
>> Dear Christophe,
>> 
>> Here: https://www.dropbox.com/s/ve8rm3qjyvew1uq/spring_system0rb.med.gz?dl=0 <https://www.dropbox.com/s/ve8rm3qjyvew1uq/spring_system0rb.med.gz?dl=0>
>> 
>> Best regards,
>> Tomek
>> 
>> 
>> 
>> On 17 May 2018 at 08:50, Christophe Geuzaine <geuzaine at gmail.com <mailto:geuzaine at gmail.com>> wrote:
>> 
>> Can you send a (small) example file?
>> 
>>> On 14 May 2018, at 13:08, Tomasz Koziara <t.koziara at gmail.com <mailto:t.koziara at gmail.com>> wrote:
>>> 
>>> Hi,
>>> 
>>> Continuing development of MED export in parmec <http://parmes.org/parmec/> I keep using Gmsh to test it. This time I am exporting nodes with time dependent scalar and vector fields attached to them. There are no elements or connectivity declared in the mesh. After import Gmsh shows all the views (per field) but I am not able to visualise anything. I would appreciate a helpful hint or comment:)
>>> 
>>> Thank you,
>>> Tomek
>>> _______________________________________________
>>> gmsh mailing list
>>> gmsh at onelab.info <mailto:gmsh at onelab.info>
>>> http://onelab.info/mailman/listinfo/gmsh <http://onelab.info/mailman/listinfo/gmsh>
>> 
>> 
>> _______________________________________________
>> gmsh mailing list
>> gmsh at onelab.info <mailto:gmsh at onelab.info>
>> http://onelab.info/mailman/listinfo/gmsh <http://onelab.info/mailman/listinfo/gmsh>
> 
> 

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


More information about the gmsh mailing list