<HTML>
<HEAD>
<TITLE>Re: [Paraview] how to color particles</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Simply add a POINT_DATA section that defines fields on the points. &nbsp;For example<BR>
<BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>POINT_DATA &nbsp;10000<BR>
VECTORS velocity float<BR>
&nbsp;&nbsp;1.1 0.3 0.2<BR>
&nbsp;&nbsp;0.3 1.2 0.7<BR>
...<BR>
<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>-Ken<BR>
<BR>
<BR>
On 9/28/09 12:50 PM, &quot;Rafael Pacheco&quot; &lt;<a href="rpacheco@math.asu.edu">rpacheco@math.asu.edu</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><B>Ken, <BR>
many thanks, maybe what I need is a very simple example on how to do this using vtk legacy file? Here is a sample of what I have (I do not have the velocity field there, as I do not know how to put it there). <BR>
<BR>
# vtk DataFile Version 3.0 <BR>
Spin-up velocity field <BR>
ASCII <BR>
DATASET POLYDATA <BR>
POINTS     10000 float <BR>
      1.915706      0.753999      3.527802 <BR>
      1.495156      0.089507      4.072335 <BR>
      0.400480      0.453014      3.814184 <BR>
      0.177201      0.131611      4.245033 <BR>
<BR>
<BR>
</B>&gt; You should be able to color particles like you color any other type of data.   Simply choose the field to color by. <BR>
&gt; <BR>
&gt; -Ken <BR>
&gt; <BR>
&gt; On 9/28/09 12:29 PM, &quot;Rafael Pacheco&quot; &lt;<a href="rpacheco@math.asu.edu">rpacheco@math.asu.edu</a> &lt;<a href="https://math.asu.edu/cgi-bin/openwebmail/rpacheco@math.asu.edu">https://math.asu.edu/cgi-bin/openwebmail/rpacheco@math.asu.edu</a>&gt; &gt; wrote: <BR>
&gt; <BR>
&gt; <BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello, <BR>
&gt; <BR>
&gt; I have a set of particles that I can visualize using unstructured data and the gliph 'sphere', i.e. I have their position x,y,z. Is it possible to color the particles using a velocity field? The magnitude of the velocity (which I have on a structured grid) can be attached to the particle, for example, for any particle I can have the position and velocity, x,y,z,v <BR>
&gt; <BR>
&gt; The questions are:(1) can I color the particles using their velocity, and (2) if the previous comment is true, what type of format should I use? I am currently using asci vtk legacy. <BR>
&gt; <BR>
&gt; Thanks! <BR>
&gt; Rafael <BR>
&gt; <BR>
&gt; <BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
&gt; <BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>&gt;    ****      Kenneth Moreland <BR>
&gt;     ***      Sandia National Laboratories <BR>
&gt; ***********   <BR>
&gt; *** *** ***  email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a> &lt;<a href="https://math.asu.edu/cgi-bin/openwebmail/kmorel@sandia.gov">https://math.asu.edu/cgi-bin/openwebmail/kmorel@sandia.gov</a>&gt; <BR>
&gt; **  ***  **  phone: (505) 844-8919 <BR>
&gt;     ***      web:   <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a> <BR>
&gt; <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>&gt; <BR>
<BR>
<BR>
-- Rafael <BR>
-------------------------------------------------------------------- <BR>
&nbsp; Department of Mathematics and Statistics <BR>
&nbsp; Arizona State University     <BR>
&nbsp; P.O.  Box 871804             <BR>
&nbsp; Tempe, Arizona  85287-1804                 &nbsp;<BR>
&nbsp; Email: <a href="rpacheco@asu.edu">rpacheco@asu.edu</a>       <BR>
&nbsp; <a href="http://math.la.asu.edu/~rpacheco">http://math.la.asu.edu/~rpacheco</a> <BR>
-------------------------------------------------------------------- <BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>