Re: [Gmsh] Visualising point data imported from MED files

2018-05-18 Thread Tomasz Koziara
Indeed, thank you, it worked:) Tomek On 18 May 2018 at 14:42, Christophe Geuzaine wrote: > > Your file is almost correct: you just need to fix the node indices in the > point elements (you start referencing nodes at index 0, while the nodes > actually start at 1). > > (I

Re: [Gmsh] Visualising point data imported from MED files

2018-05-18 Thread Tomasz Koziara
Dear Christophe, Here is an output file with POINT1 elements exported using the previously quoted lines of code: https://www.dropbox.com/s/izu5o15b2ow8y9u/spring_system0rb_ele.med.gz?dl=0 And here is a stack trace of the crush which I am getting on a OS X 10.10.5 when opening this file with

Re: [Gmsh] Visualising point data imported from MED files

2018-05-18 Thread Christophe Geuzaine
Your file is almost correct: you just need to fix the node indices in the point elements (you start referencing nodes at index 0, while the nodes actually start at 1). (I have patched Gmsh to not crash anymore when the indices are incorrect.) Cheers, Christophe > On 18 May 2018, at 09:20,

Re: [Gmsh] Visualising point data imported from MED files

2018-05-17 Thread Tomasz Koziara
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 conn; for (i = 0; i < num; i ++) { conn.push_back(i); } ASSERT (MEDmeshElementConnectivityWr(fid, meshName, MED_NO_DT,

Re: [Gmsh] Visualising point data imported from MED files

2018-05-17 Thread Christophe Geuzaine
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 wrote:

Re: [Gmsh] Visualising point data imported from MED files

2018-05-17 Thread Christophe Geuzaine
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 wrote: > > Dear Christophe, >

Re: [Gmsh] Visualising point data imported from MED files

2018-05-17 Thread Tomasz Koziara
Dear Christophe, Here: https://www.dropbox.com/s/ve8rm3qjyvew1uq/spring_system0rb.med.gz?dl=0 Best regards, Tomek On 17 May 2018 at 08:50, Christophe Geuzaine wrote: > > Can you send a (small) example file? > > On 14 May 2018, at 13:08, Tomasz Koziara

Re: [Gmsh] Visualising point data imported from MED files

2018-05-17 Thread Christophe Geuzaine
Can you send a (small) example file? > On 14 May 2018, at 13:08, Tomasz Koziara wrote: > > Hi, > > Continuing development of MED export in parmec I > keep using Gmsh to test it. This time I am exporting nodes with time > dependent scalar and