<div dir="ltr">Dear Christophe,<div><br></div><div>Here is an output file with POINT1 elements exported using the previously quoted lines of code:</div><div><br></div><div><a href="https://www.dropbox.com/s/izu5o15b2ow8y9u/spring_system0rb_ele.med.gz?dl=0">https://www.dropbox.com/s/izu5o15b2ow8y9u/spring_system0rb_ele.med.gz?dl=0</a><br></div><div><br></div><div>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 Gmsh 3.0.6:</div><div><br></div><div><a href="https://www.dropbox.com/s/q4fdk6thv2woy7q/spring_system0rb_bug.txt.gz?dl=0">https://www.dropbox.com/s/q4fdk6thv2woy7q/spring_system0rb_bug.txt.gz?dl=0</a></div><div><br></div><div>If there is a better way of annotating the MED file with elements information in this case, I would appreciate an advice:)</div><div><br></div><div>Best regards,</div><div>Tomek</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 May 2018 at 21:36, Christophe Geuzaine <span dir="ltr"><<a href="mailto:geuzaine@gmail.com" target="_blank">geuzaine@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div>HI Tomasz,<div><br></div><div>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.</div><div><br></div><div><div>Ch.</div><div><div class="h5"><div><br><blockquote type="cite"><div>On 17 May 2018, at 21:32, Tomasz Koziara <<a href="mailto:t.koziara@gmail.com" target="_blank">t.koziara@gmail.com</a>> wrote:</div><br class="m_473505646860515047Apple-interchange-newline"><div><div dir="ltr">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:<div><br></div><div>
<span></span><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)"><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">std::vector<med_int> conn;</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)"><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">for (i = 0; i < num; i ++)</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)"><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">{</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)"><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures"> conn.push_back(i);</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)"><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">}</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)"><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">ASSERT (MEDmeshElementConnectivityWr(<wbr>fid, meshName, MED_NO_DT, MED_NO_IT, 0., MED_CELL, MED_POINT1,</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)"><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures"> MED_NODAL, MED_FULL_INTERLACE, conn.size(), &conn[0]) >= 0, "Could not write MED elements");</span></div>
<div><br></div>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</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 May 2018 at 21:09, Christophe Geuzaine <span dir="ltr"><<a href="mailto:geuzaine@gmail.com" target="_blank">geuzaine@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div>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.<span class="m_473505646860515047HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="m_473505646860515047HOEnZb"><font color="#888888">Christophe</font></span><div><div class="m_473505646860515047h5"><br><div><br><blockquote type="cite"><div>On 17 May 2018, at 14:56, Tomasz Koziara <<a href="mailto:t.koziara@gmail.com" target="_blank">t.koziara@gmail.com</a>> wrote:</div><br class="m_473505646860515047m_7059130589614002266Apple-interchange-newline"><div><div dir="ltr">Dear Christophe,<div><br></div><div>Here: <a href="https://www.dropbox.com/s/ve8rm3qjyvew1uq/spring_system0rb.med.gz?dl=0" target="_blank">https://www.dropbox.com/<wbr>s/ve8rm3qjyvew1uq/spring_syste<wbr>m0rb.med.gz?dl=0</a></div><div><br></div><div>Best regards,</div><div>Tomek</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 May 2018 at 08:50, Christophe Geuzaine <span dir="ltr"><<a href="mailto:geuzaine@gmail.com" target="_blank">geuzaine@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div>Can you send a (small) example file?<br><div><br><blockquote type="cite"><div><div class="m_473505646860515047m_7059130589614002266h5"><div>On 14 May 2018, at 13:08, Tomasz Koziara <<a href="mailto:t.koziara@gmail.com" target="_blank">t.koziara@gmail.com</a>> wrote:</div><br class="m_473505646860515047m_7059130589614002266m_5526381163127838437Apple-interchange-newline"></div></div><div><div><div class="m_473505646860515047m_7059130589614002266h5"><div dir="ltr">Hi,<div><br></div><div>Continuing development of MED export in <a href="http://parmes.org/parmec/" target="_blank">parmec</a> 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:)</div><div><br></div><div>Thank you,</div><div>Tomek</div></div></div></div>
______________________________<wbr>_________________<br>gmsh mailing list<br><a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br><a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank">http://onelab.info/mailman/lis<wbr>tinfo/gmsh</a><br></div></blockquote></div><br></div></blockquote></div><br></div>
______________________________<wbr>_________________<br>gmsh mailing list<br><a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br><a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank">http://onelab.info/mailman/lis<wbr>tinfo/gmsh</a><br></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>