<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. For example<BR>
<BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>POINT_DATA 10000<BR>
VECTORS velocity float<BR>
1.1 0.3 0.2<BR>
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, "Rafael Pacheco" <<a href="rpacheco@math.asu.edu">rpacheco@math.asu.edu</a>> 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>> You should be able to color particles like you color any other type of data. Simply choose the field to color by. <BR>
> <BR>
> -Ken <BR>
> <BR>
> On 9/28/09 12:29 PM, "Rafael Pacheco" <<a href="rpacheco@math.asu.edu">rpacheco@math.asu.edu</a> <<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>> > wrote: <BR>
> <BR>
> <BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello, <BR>
> <BR>
> 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>
> <BR>
> 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>
> <BR>
> Thanks! <BR>
> Rafael <BR>
> <BR>
> <BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
> <BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>> **** Kenneth Moreland <BR>
> *** Sandia National Laboratories <BR>
> *********** <BR>
> *** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a> <<a href="https://math.asu.edu/cgi-bin/openwebmail/kmorel@sandia.gov">https://math.asu.edu/cgi-bin/openwebmail/kmorel@sandia.gov</a>> <BR>
> ** *** ** phone: (505) 844-8919 <BR>
> *** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a> <BR>
> <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>> <BR>
<BR>
<BR>
-- Rafael <BR>
-------------------------------------------------------------------- <BR>
Department of Mathematics and Statistics <BR>
Arizona State University <BR>
P.O. Box 871804 <BR>
Tempe, Arizona 85287-1804 <BR>
Email: <a href="rpacheco@asu.edu">rpacheco@asu.edu</a> <BR>
<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>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <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>