<div dir="ltr"><div>Hi Gaetano, <br></div><div><br></div><div>I think this script will work with Anaconda -> you'll need to make sure the gmsh package is installed and that it is a compatible version (< 4.0).</div><div>The reason I'm using python is to call gmsh functions, but these are also available in Julia, a language more similar to MATLAB I believe.</div><div><br></div><div>For the displacement, does it seem like it aligns? I don't want to make a mistake in interpreting the data. <br></div><div><br></div><div>Jeremy, <br></div><div><br></div><div>You're right, there isn't any explicit averaging going on, it just goes through all the nodes and assigns values based on their number. </div><div>After assigning I trusted Gmsh to display them nicely :):)</div><div><br></div><div>This does mean that node data values are set multiple times -> to the same value (magnitude at least).<br></div><div>A lot of the data on each row is duplicated elsewhere in the file, my idea was that if the elements were ordered correctly, the <br>repeated overwrite wouldn't matter as long as the overwrite contained the same number. <br></div><div><br></div><div>Sincerely, <br></div><div>Max <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 14, 2019 at 7:56 AM Jeremy Theler <<a href="mailto:jeremy@seamplex.com">jeremy@seamplex.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>Hey Max</div><div><br></div><div>I am also interested in this issue. I did not fully understand your script.</div><div>Are you averaging the stresses at the gauss points over the nodes? If so, where and how?</div><div>The same goes for the nodal forces, that are given at the nodes but locally for each element.</div><div><br></div><div>How come you end up with 125 nodal values from the 512 initial values?</div><div><br></div><div>Any further explanation will be appreciated.</div><div><br></div><div>--</div><div>jeremy theler</div><div><a href="http://www.seamplex.com" target="_blank">www.seamplex.com</a></div><div><br></div><div><br></div><div>On Wed, 2019-02-13 at 19:31 -0500, Max Orok wrote:</div><blockquote type="cite"><div dir="ltr"><br><div>Hi Gaetano, <br></div><div><br></div><div>Here is a small python script that tries to plot these data along with the mesh results file. <br></div><div>I assumed the node forces were for the given elements, in the order gmsh is expecting. <br></div><div><br></div><div>Here are some pictures -> hopefully it is something like you were predicting. <br></div><div>To an outsider, they look pretty good!<br></div><div><br></div><div><div><img src="cid:168ec9fb8f0cb971f162" alt="image.png" width="474" height="349"></div><div><div><img src="cid:168ec9fb8efcb971f161" alt="image.png" width="474" height="241"></div><div><br></div><div>Sincerely, <br></div><div>Max <br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 13, 2019 at 8:02 AM Gaetano Camarda <<a href="mailto:gaetano_18@live.it" target="_blank">gaetano_18@live.it</a>> wrote:<br></div><blockquote type="cite">





<div lang="IT">
<div class="gmail-m_-6246839367571716923gmail-m_-883668349098454262WordSection1">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hello, I have an issue with postprocessing on Gmsh, I created a mesh on Gmsh, and I’ve imported it on Matlab, for some analysis,</p>
<p class="MsoNormal">now I have the displacement of my mesh and I’m able to import it on the .msh file and post-processing the view on Gmsh.</p>
<p class="MsoNormal">I have also 2 matrix, one with stress calculated on Gauss Points (I used 2) and one with nodal force of the element in each row.</p>
<p class="MsoNormal">I would like to view the stress and nodal force in Gmsh, as I do with displacement. But I do not know how to do it.</p>
<p class="MsoNormal">I’ve worked with Hexahedral.</p>
<p class="MsoNormal">I’m attatching also the file of the mesh, and the files with stress on gauss point and nodal forces.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">(please remove .txt from 10cm.msh)</p>
<p class="MsoNormal">Inviato da <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">
Posta</a> per Windows 10</p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<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" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
<br></blockquote></div><br clear="all"><br><pre>_______________________________________________
gmsh mailing list
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a>
<a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a>
</pre></blockquote></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Max Orok</div><div>Contractor<br></div></div><div dir="ltr"><a href="http://www.mevex.com" target="_blank">www.mevex.com</a><br><br><img src="https://docs.google.com/uc?export=download&id=1fHTIiW4OMUjQr1iOkspQ7wiEsxunoOs0&revid=0B6x5w-5zVaEjSkpwbm5oY29jbG1XMzJoYldXTmJpNGFtb3dVPQ" width="164" height="42"><br></div></div></div></div></div></div>