<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style id="ms-outlook-ios-style" type="text/css">html {
background-color: transparent;
}

body {
color: #333;
line-height: 150%;
font-family: "-apple-system", "HelveticaNeue";
margin: 0;
}

.ms-outlook-ios-reference-expand {
display: block;
color: #999;
padding: 20px 0px;
text-decoration: none;
}

.ms-outlook-ios-availability-container {
max-width: 500px;
margin: auto;
padding: 12px 15px 15px 15px;
border: 1px solid #C7E0F4;
border-radius: 4px;
}

.ms-outlook-ios-availability-container > .ms-outlook-ios-availability-delete-button {
width: 25px;
height: 25px;
right: -12px;
top: -12px;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAYAAAA4TnrqAAAAAXNSR0IArs4c6QAACxpJREFUeAHlnFuMXlUVx/fcOzNtp0ynF0U7hWKrEmKLosZEjUZ9MgZIQBNC0uAtJr745oOJIT74xgskJkQbAlQNJmBMfNDEG0YjEC7GIBQZ6IAI005L79O5+/+dfut0f5dzzt7nu8w37UrWt893zt5rr/U/e6+zL+ucHrcGtLq62q9qd4gnxTeKb6kcc267eEI8Kz4mnhFPi58Rv1g5nunp6VnS8ZVHAqdHPCk+KP6zuBWEHORNinvWNWoYIN4q/o74mLidhHzqob71AxzKij8g/p14LYh6qb97QUM58T7x38TdQOiBPt0FmhQaEf9M3I2EXiNr7tOkBK3pVvGCuJsJ/dCzqVbWWxZxVTygso+InxBz3M2Efuj5SEXvUrqWQloV7lRtT4vfX6rWtS30pqr/uMZp78SqEQ2WgPqQKvmnuKWtaWnFuaWVVbciXl51rk+a9fb2uP6EY80qzL+oHB8RYC8V5vQyRIEloD6tsk965UsdAsyZ+WV35uKyOz+/4uZ0YgmEMqhfyA3397rRoV63eUOf2zzUJxAzMsed/owA+2tokWCwmgVKDcadvLDsZs8vutMXV5zkhepYl08GurENvW5idMCNj/Q5Nb5mKBiwoGoqXe/fZTQCkmNnl9x/Ty+4xZzW0yeLB9WC6Hp0QbLSJRd0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6Ov040O3J06LsV3CKzVpBvqgClPUJQfUcEWO8Dgjoi79UDoaYNp9MeOQPohQJHXfBbHD/NTRDRFooKN2IeLiEyxYh1N0e9t6WmE/hFu4DEr54P1B50MGs2z4E9UMMS0gdDE5eYG9YmsdvygF/rZxBm9/Q2Lgjp/r+vp4zYFS00Nc39cUDi9TPi0TUDZ4X1FCnUjoZfFZqAvekfQd60LUiYFqyLgUaXTlePchMgUwqclLMl3WvtvhCZ2E6EPekHoib4RET9/V7FXk8KVnyqwJJBByI/8DHnHbCkRPm2E/+oWwGpjStHT3wIznXPSe/xWRb4qsCoFDyl9qnJcmBBnTvi0EYC9NLN2PgwfRf3oYYR+kfHwYFDnvxs+FDRIPaDMfHQiaJbJc7U2vJvH85UWB98QLNnOqP4+Jd/jOJTW+g0Lhgf21MNHdeQNC8ARWAymcHIf5X8osVZ01b27AzgC7Holz4nH+B9KDAKvqrfCDBgB9hUdPy4O8l9WjpRFtqvmfUMzXIB9U8cP2v+YFOcf8yYr227sTLHCwexgXb3JasAIsB/oOHgMZuUsxXha2hX/jrQZ3CxgJoe1LSLuCCSLfvteczuWuANXOK3KrDT4ZXIEZA4dsqRXuuRPdD3ah2XJ5DwAEs1C16MV0hXpksznWgSMXz0j1vZ+18FqE2A4/YfFUU9JK7/G6Zuqv9QXQxpNdwpt0YDvN8p0szhoZ6hQYOcyHFZVvDSe+5Z9W9RRCxsU3ydeEnczteQrRy0BUSgdEP+jS9Hqju9n+UgLKL6l9XXx0S4BrTu/zFYDWr/AOig+skagdf83/3zAOBZQvOryRTEf+Donbid15GuS0eOsWlBC/gsl9iW/LP6C+PPi68TN0usS8EcxH6z4be2qZrPCG5XvCFi1FQu8SZ1j6YdXYeC9YuLxiZyGicQltpuoRPiEmJVLwqPgZwXOtNKO0v8BzRAPSFNM7HEAAAAASUVORK5CYII=");
background-size: 25px 25px;
background-position: center;
}

#ms-outlook-ios-main-container {
margin: 0 0 0 0;
margin-top: 120;
padding: 8;
}

#ms-outlook-ios-content-container {
padding: 0;
padding-top: 12;
padding-bottom: 20;
}

.ms-outlook-ios-mention {
color: #333;
background-color: #f1f1f1;
border-radius: 4px;
padding: 0 2px 0 2px;
pointer-events: none;
text-decoration: none;
}

.ms-outlook-ios-mention-external {
color: #ba8f0d;
background-color: #fdf7e7;
}

.ms-outlook-ios-mention-external-clear-design {
color: #ba8f0d;
background-color: #f1f1f1;
}</style>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
</head>
<body style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
<div style="direction: ltr;">
<div>Thanks for your help, but I think I have not understood well. </div>
<div style="direction: ltr;">I have a mesh all brick (8 nodes) and my stress field matrix is composed this way:</div>
<div style="direction: ltr;">1 sigx sigy sigz sigxy sigyz sigxz</div>
<div style="direction: ltr;">   ...     ....    .....    .....    ......    .....</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">In each row is express the stress state of the element, I think I have to copy this matrix into .msh file as $ElementData, but I do not unsterstand well the input format, is that right this way? </div>
<div style="direction: ltr;"><br>
</div>
<div><br>
</div>
<div class="ms-outlook-ios-signature">
<div style="direction: ltr;"><a href="https://aka.ms/qtex0l">Outlook</a> per iOS</div>
</div>
</div>
<div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="dir="ltr""><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Da:</b> Max Orok <morok@mevex.com><br>
<b>Inviato:</b> martedě, gennaio 29, 2019 7:14 PM<br>
<b>A:</b> Gaetano Camarda<br>
<b>Cc:</b> gmsh@onelab.info<br>
<b>Oggetto:</b> Re: [Gmsh] Post-processing stress field
<div> </div>
</font></div>
<meta content="text/html; charset=utf-8">
<div dir="ltr">
<div dir="ltr">
<div>Hello Gaetano, <br>
</div>
<div><br>
</div>
<div>Here is a short program to plot 3x3 tensor data using the C++ gmsh API (it shouldn't be too hard to port to Python or Julia if you're more comfortable there). It only plots data for one element, but can be extended for your case.<br>
</div>
<div><br>
</div>
<div>The "addModelData" call is expecting a vector of vectors with 9 entries each for this case.<br>
</div>
<div>
<div>I think the vector ordering corresponding to the matrix is like this: <br>
</div>
<div>[elt11, elt12, elt13, elt21, elt22, ...] <br>
</div>
<div><br>
</div>
<div>I assume the stress matrix is symmetric and so only has 6 unique entries.</div>
</div>
<div>Therefore your vector entries will look like [x xy xz xy y yz xz yz z]<br>
</div>
<div>The tricky part will be importing the data in a sensible way.  <br>
</div>
<div><br>
</div>
<div>Perhaps you could parse a CSV using python and add entries to the data vector in a loop?</div>
<div>Please find attached the program as well as example input mesh and output mesh files.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><img alt="image.png" width="474" height="241" src="cid:ii_jri2kxly0"></div>
<div><br>
</div>
<div>Sincerely,</div>
<div>Max<br>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jan 29, 2019 at 11:24 AM Gaetano Camarda <<a href="mailto:gaetano_18@live.it">gaetano_18@live.it</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 lang="IT">
<div class="gmail-m_4957269514431204830WordSection1">
<p class="MsoNormal">Hello everyone,</p>
<p class="MsoNormal">I’m having some difficult on post processing a mesh I created.</p>
<p class="MsoNormal">I create a mesh on Gmsh all Hexa (so a brick with 8 nodes), i use this mesh and import it on Matlab,</p>
<p class="MsoNormal">there i run some analisys and find the stress matrix:</p>
<p class="MsoNormal">[sigx sigy sigz sigxy sigyz sigxz]</p>
<p class="MsoNormal">…..    …..    …..   …..    …..    …..</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Now I would like to visualize the stress field on Gmsh, but I do not find any way to do so, I can export the matrix,</p>
<p class="MsoNormal">I tried to generete a *.pos file, but I didn’t find a solution.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Inviato da <a href="https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986&data=02%7C01%7C%7Cca31cd7089a2464649bc08d68615abee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636843824966724800&sdata=B9ULg21XHyAFBAd6yWI8Wsc%2B9fTHxhibsTu5e1UtiUM%3D&reserved=0" originalsrc="https://go.microsoft.com/fwlink/?LinkId=550986" shash="K6nYzPP047iTeURd7S7uMnRPaEq4AUQdgHVKi+Qn3k+vcklqzrC06Xm4HOx1RW4XWAu3NujQLmvu0HP8XDDkPQGyoJLI0HaIZ8Yd+FgCK3Qy6a54gyaLbBnUGuUARgbWSgBDQzI1ENaWeTG0mjyRFtOOs9oQhigeCBsZ8TjzFcU=" 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="https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fonelab.info%2Fmailman%2Flistinfo%2Fgmsh&data=02%7C01%7C%7Cca31cd7089a2464649bc08d68615abee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636843824966734804&sdata=x5CcVoLrp3YNu69ZWMj3fvkDM1zD5CNYD4soeJ25tfo%3D&reserved=0" originalsrc="http://onelab.info/mailman/listinfo/gmsh" shash="q6TDXZXk0AkPiWbhB65yJrygKKlsdX3dvJWhCNavSCCSzSmxLYpb6UGoacxMQd5tvGEWO3bSak3PEblthNbTLamNWuY/9NfYJhZwCmlCvOgUuYmErZRthYZ1h/RRKfePjU8Y1OkYH4N7Ze2c3kGZ2wS1gRzaZI+AKy1Yfhs58OY=" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
</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="https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.mevex.com&data=02%7C01%7C%7Cca31cd7089a2464649bc08d68615abee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636843824966734804&sdata=9Qnyosr1z%2BWkN%2FpOeuE8LZewBbv0q0WUfPa92IL3m9M%3D&reserved=0" originalsrc="http://www.mevex.com" shash="Mz5a0wOxY8rBvZUdzYDFrRK+yAIUxBLxJVP6x+hOzgj3UIcCugQdX/b6hON1jcarCYA8Y0UvhFZ88lCfFJPAo0hRcUfDnTpEbXOsn6GNHKrA1k6ERaJC8BJEd1ybiHsWm7/cALIFzOTnE8+9bQtv2D6ow0VCFl0+bdWxGt440Ww=" target="_blank">www.mevex.com</a><br>
<br>
<img width="164" height="42" src="https://docs.google.com/uc?export=download&id=1fHTIiW4OMUjQr1iOkspQ7wiEsxunoOs0&revid=0B6x5w-5zVaEjSkpwbm5oY29jbG1XMzJoYldXTmJpNGFtb3dVPQ"><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>