<div dir="ltr">Thanks for the file Sam, but having looked into it some more I think that I need to be using a polydata format rather than unstructured grid, as the data I have is a point mesh.<div><br></div><div>Could anyone let me know how the legacy files need to be set up for polydata using vertices?</div>
<div><br></div><div>My code outputs a grid of points with an x,y,z coordinate, and on each point a value of a 3D velocity field (vx, vy, vz) is defined. </div><div><br></div><div>I want to use the stream tracer on this data, but don't know what the ASCII files need to look like in order to be read correctly by Paraview.</div>
<div><br></div><div>Thanks</div><div>George</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 8, 2013 at 11:34 PM, Samuel Key <span dir="ltr"><<a href="mailto:samuelkey@bresnan.net" target="_blank">samuelkey@bresnan.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
George,<br>
<br>
Maybe this will help?<br>
<br>
Sam<div><div class="h5"><br>
<br>
<div>On 8/7/2013 8:09 PM, George Howitt
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi
<div><br>
</div>
<div>I have a fortran code that I'm trying to get streamlines
from. The code generates a spherical grid of points and a
velocity on each of those points. </div>
<div><br>
</div>
<div>I have been using a structured grid but paraview doesn't
seem to read the vectors, instead it thinks they are more grid
points and plots them as such. >From what I've read it
looks like I need to use an unstructured grid but I don't know
how to set up the cell commands for that.</div>
<div><br>
</div>
<div>Here are the lines of my code that write the .vts files:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><font size="1" face="courier new, monospace">
write(113,*) '# vtk DataFile Version 3.0' </font></div>
<div><font size="1" face="courier new, monospace">
write(113,*) 'This is the cartesian velocity field'</font></div>
<div><font size="1" face="courier new, monospace">
write(113,*) 'ASCII'</font></div>
<div><font size="1" face="courier new, monospace">
write(113,*) 'DATASET STRUCTURED_GRID' </font></div>
<div><font size="1" face="courier new, monospace">
write(113,*) 'DIMENSIONS',nx,ny,nz</font></div>
</div>
<div><font size="1" face="courier new, monospace"><br>
</font></div>
<div>
<div><font size="1" face="courier new, monospace"> do k
= 1, nphi + 1 </font></div>
<div><font size="1" face="courier new, monospace"> do j
= 1, nth + 2 </font></div>
<div><font size="1" face="courier new, monospace"> do i
= 1, nr </font></div>
<div><font size="1" face="courier new, monospace">
write(113,*) xc(i,j,k), yc(i,j,k), zc(i,j,k) </font></div>
<div><font size="1" face="courier new, monospace">
enddo </font></div>
<div><font size="1" face="courier new, monospace">
enddo </font></div>
<div><font size="1" face="courier new, monospace">
enddo</font></div>
</div>
<div><font size="1" face="courier new, monospace"><br>
</font></div>
<div>
<div><font size="1" face="courier new, monospace"><span style="white-space:pre-wrap"> </span>write(113,*)
'POINT_DATA',nx</font></div>
<div><font size="1" face="courier new, monospace"><span style="white-space:pre-wrap"> </span>write(113,*)
'VECTORS velocityfield float'</font></div>
<div><font size="1" face="courier new, monospace"><span style="white-space:pre-wrap"> </span>write(113,*)
'LOOKUP_TABLE default'</font></div>
</div>
<div><font size="1" face="courier new, monospace"><br>
</font></div>
<div>
<div><font size="1" face="courier new, monospace"> do k
= 1, nphi + 1 </font></div>
<div><font size="1" face="courier new, monospace"> do j
= 1, nth + 2 </font></div>
<div><font size="1" face="courier new, monospace"> do i
= 1, nr </font></div>
<div><font size="1" face="courier new, monospace">
write(113,*) ux(i,j,k), uy(i,j,k), uz(i,j,k) </font></div>
<div><font size="1" face="courier new, monospace">
enddo </font></div>
<div><font size="1" face="courier new, monospace">
enddo </font></div>
<div><font size="1" face="courier new, monospace">
enddo</font></div>
</div>
<div><font size="1" face="courier new, monospace"><br>
</font></div>
<div><font face="arial, helvetica, sans-serif">Could anyone let
me know how I should modify this for an unstructured grid?</font></div>
<div><br>
</div>
<div>Thanks</div>
<div>George</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><div class="im"><pre>_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>
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>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a>
Follow this link to subscribe/unsubscribe:
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
</div></blockquote>
<br>
</div>
</blockquote></div><br></div>