<div dir="ltr">P.S, i'm using the python vtk wrapper<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-08-01 17:46 GMT+01:00 SilveiraPO . <span dir="ltr"><<a href="mailto:tsilveira1993@gmail.com" target="_blank">tsilveira1993@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>I'm making a 2D FEM program (using only quad elements), and after trying your examples to assign scalars to the elements of my mesh, i got no good results. <br></div><div>Basically, i have 3 arrays:</div><div><br></div><div>1. The first one is the nodes array following this format: [x,y,z]*n in which x,y and z correspond to the respective coordinate and "n" the number of nodes<br></div><div><br></div><div>2. The second one, is the cells array -> [1node, 2node, 3node, 4node]*e, where "e" is the number of elements.</div><div><br></div><div>3. And finally the last array is the stresses array -> [stresse]*e, where "e" is the number of elements.</div><div><br></div><div>My question is, how can i assign the values of the stresses array to the cells array. Basically assigning the stresses array as my scalars, in order to render them on top of my cells.</div><div>Thanks in advance!</div><div><br></div><div>Cheers<br></div></div>
</blockquote></div><br></div>