<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Andy, I second George's response below. I have used the same approach when developing a VTK-based visualization program capVTE which was used to visualize animated rarefied gas / plasma simulation flows. It worked fine.</span></div><div><br></div>  <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Andrew Parker &lt;andy.john.parker@googlemail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> George Zagaris &lt;george.zagaris@kitware.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> vtkusers@vtk.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, June 15, 2012 8:52
 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [vtkusers] Any more for Particle/Meshless formats<br> </font> </div> <br>
<div id="yiv814901259">Hi,<div><br></div><div>Just wanted to see if there were any more comments/input into the best way to read and write particle/meshless based formats for vtk and then subsequently paraview?</div><div><br></div><div>Anybody who has used vtk/paraview for lagrangian/SPH/DEM etc type approaches please feel free to chime-in indicating the best approach for constantly updating node positions, no associated connectivity, and unsteady data associated with those nodes as a function of space and time.</div>
<div><br></div><div>Questions are: &nbsp;Which vtk file format and mesh format for the above.</div><div><br></div><div>Cheers again,</div><div>Andy<br><br><div class="yiv814901259gmail_quote">On 14 June 2012 16:34, George Zagaris <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:george.zagaris@kitware.com" target="_blank" href="mailto:george.zagaris@kitware.com">george.zagaris@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="yiv814901259gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Yes, you are right. In what I described, you would need a file for<br>
each time-step. I don't know of an already implemented reader/writer<br>
that would allow you to store multiple time-steps in a single file. I<br>
cc'ed the list in case someone else has more ideas on this.<br>
<br>
Best,<br>
George<br>
<br>
On Thu, Jun 14, 2012 at 11:19 AM, Andrew Parker<br>
<div class="yiv814901259HOEnZb"><div class="yiv814901259h5">&lt;<a rel="nofollow" ymailto="mailto:andy.john.parker@googlemail.com" target="_blank" href="mailto:andy.john.parker@googlemail.com">andy.john.parker@googlemail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; Thanks for that, I had this as my first idea but I'm right in thinking that<br>
&gt; would require one file for every new position of particles? &nbsp;Is there no way<br>
&gt; to have that file store multiple position each associated with a time step<br>
&gt; all in one file? &nbsp;I'm guessing that's not a&nbsp;vtkUnstructuredGrid?? &nbsp;Is there<br>
&gt; such a file?<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Andy<br>
&gt;<br>
&gt;<br>
&gt; On 14 June 2012 15:59, George Zagaris &lt;<a rel="nofollow" ymailto="mailto:george.zagaris@kitware.com" target="_blank" href="mailto:george.zagaris@kitware.com">george.zagaris@kitware.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; One possibility is to store the particles in a vtkUnstructuredGrid<br>
&gt;&gt; where each cell is a VTK_VERTEX or you could have a single cell that<br>
&gt;&gt; is of type VTK_POLY_VERTEX. Then, you can attach PointData (vectors or<br>
&gt;&gt; scalars, etc.) as normal and read/write *.vtu files.<br>
&gt;&gt;<br>
&gt;&gt; Best,<br>
&gt;&gt; George<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Jun 14, 2012 at 5:31 AM, Andrew Parker<br>
&gt;&gt; &lt;<a rel="nofollow" ymailto="mailto:andy.john.parker@googlemail.com" target="_blank" href="mailto:andy.john.parker@googlemail.com">andy.john.parker@googlemail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Could I ask for a bit of help. &nbsp;I'd like to visualise particle based<br>
&gt;&gt; &gt; flows.<br>
&gt;&gt; &gt; &nbsp;My requirements are to be able to write(and read) a &nbsp;vtk style file<br>
&gt;&gt; &gt; that<br>
&gt;&gt; &gt; paraview and read and animate. &nbsp;I would like the file to have scalar and<br>
&gt;&gt; &gt; or<br>
&gt;&gt; &gt; vectors associated with each particle, there to be a relevant time step<br>
&gt;&gt; &gt; per<br>
&gt;&gt; &gt; "slot" in the file, and that each time step the particle positions are<br>
&gt;&gt; &gt; updated and hence move. &nbsp;I would like an animation to show the particles<br>
&gt;&gt; &gt; moving, as a function of the new positions in the file, and not<br>
&gt;&gt; &gt; inspecting a<br>
&gt;&gt; &gt; vector field in the file and integrating to determine a new position.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Any help really appreciated,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Cheers again,<br>
&gt;&gt; &gt; Andy<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; http://www.kitware.com/opensource/opensource.html<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; &gt; http://www.vtk.org/Wiki/VTK_FAQ<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; http://www.vtk.org/mailman/listinfo/vtkusers<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; __________________________________<br>
&gt;<br>
&gt; &nbsp;&nbsp; Dr Andrew Parker<br>
&gt;<br>
&gt; &nbsp;&nbsp; Em@il:&nbsp; <a rel="nofollow" ymailto="mailto:andrew.parker@cantab.net" target="_blank" href="mailto:andrew.parker@cantab.net">andrew.parker@cantab.net</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>__________________________________</div><div>&nbsp;&nbsp; Dr Andrew Parker</div><div>&nbsp;&nbsp; <a rel="nofollow" ymailto="mailto:Em@il" target="_blank" href="mailto:Em@il">Em@il</a>:&nbsp; <a rel="nofollow" ymailto="mailto:andrew.parker@cantab.net" target="_blank" href="mailto:andrew.parker@cantab.net">andrew.parker@cantab.net</a></div>
<br>
</div>
</div><br>_______________________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br> </div> </div>  </div></body></html>