<div dir="ltr">Hi Jens,<div><br></div><div>I can't think of a way to do this easily in ParaView using existing filters. Your best bet is probably to write the scaled tube geometry to your VTK file directly and visualize that.</div><div><br></div><div>Sorry to not be of more help,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 15, 2015 at 10:29 AM, Jens Laube <span dir="ltr"><<a href="mailto:jlaube@hmi.uni-bremen.de" target="_blank">jlaube@hmi.uni-bremen.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Dear Paraview users,<br>
<br>
I am using the paraview version 4.1.0 to display forces between
nanoparticles from a Discrete Element simulation. For the
visualization I create vtk-files that look like the following
minimal example:<br>
<br>
<br>
<i># vtk DataFile Version 2.0</i><i><br>
</i><i>Generated by lpp.py</i><i><br>
</i><i>ASCII</i><i><br>
</i><i>DATASET POLYDATA</i><i><br>
</i><i>POINTS 2 float</i><i><br>
</i><i>0.0 0.0 0.0</i><i><br>
</i><i>0.0 0.0 2e-09</i><i><br>
</i><i>LINES 1 3</i><i><br>
</i><i>2 0 1</i><i><br>
</i><i><br>
</i><i>CELL_DATA 1</i><i><br>
</i><i>VECTORS f_pair float</i><i><br>
</i><i>0.0 0.0 -2.12063e-08</i><i><br>
</i><i>SCALARS f_tot float 1</i><i><br>
</i><i>LOOKUP_TABLE default</i><i><br>
</i><i>2.12063e-08</i><i><br>
</i><i><br>
</i><i>POINT_DATA 2</i><i><br>
</i><i>VECTORS i float</i><i><br>
</i><i>0.0 0.0 0.0</i><i><br>
</i><i>0.0 0.0 0.0</i><i><br>
</i><i>VECTORS f float</i><i><br>
</i><i>0.0 0.0 0.0</i><i><br>
</i><i>0.0 0.0 0.0</i><i><br>
</i><i>VECTORS omega float</i><i><br>
</i><i>0.0 0.0 0.0</i><i><br>
</i><i>0.0 0.0 0.0</i><i><br>
</i><i>VECTORS v float</i><i><br>
</i><i>0.0 0.0 0.0</i><i><br>
</i><i>0.0 0.0 -0.4</i><i><br>
</i><i>SCALARS radius float 1</i><i><br>
</i><i>LOOKUP_TABLE default</i><i><br>
</i><i>1.53e-09</i><i><br>
</i><i>1.53e-09</i><i><br>
</i><i>SCALARS type float 1</i><i><br>
</i><i>LOOKUP_TABLE default</i><i><br>
</i><i>1.0</i><i><br>
</i><i>1.0</i><i><br>
</i><i>SCALARS id float 1</i><i><br>
</i><i>LOOKUP_TABLE default</i><i><br>
</i><i>1.0</i><i><br>
</i><i>2.0</i><br>
<br>
<br>
The lines defined in this file connect the particle centers and the
CELL_DATA VECTORS and SCALARS represent the interparticle force
vector and the absolute force respectively.<br>
With this file I try to visualize the force by a tube with varying
radius and color depending on the magnitude of the vorce vector
using paraview 4.1.0. To this aim I use the Filters
"CellDatatoPointData"-->"Tube". In the scalars and Vectors field
of the "Tube"-filter I can choose the variables "<i>f_tot</i>" and
"f_pair" from the vtk-file, but if I try to scale the radius by
vector, there is no visible variation of the radius independent of
the values in "Radius" and "Radius Factor". The only way to receive
a varying radius is choosing the option "Vary radius By Absolute
Scalar" but then I cannot manipulate the minimum and maximum
thickness of the tube by using the values of "Radius" and "Radius
Factor". Thus I receive a too large tube.<br>
Do I miss something basic here? Could anyone give me a hint how to
customize the visualization properly?<br>
Thanks a lot<br>
<br>
Best Whishes<span class="HOEnZb"><font color="#888888"><br>
Jens Laube<br>
<br>
<br>
<pre cols="72">--
Dipl.-Ing. Jens Laube
Hybrid Materials Interfaces Group
Universität Bremen
Am Fallturm 1, D-28359 Bremen
Tel. <a href="tel:%2B49%20421%20218%2064574" value="+4942121864574" target="_blank">+49 421 218 64574</a>
Fax <a href="tel:%2B49%20421%20218%2064599" value="+4942121864599" target="_blank">+49 421 218 64599</a>
<a href="mailto:jlaube@hmi.uni-bremen.de" target="_blank">jlaube@hmi.uni-bremen.de</a>
<a href="http://www.hmi.uni-bremen.de" target="_blank">www.hmi.uni-bremen.de</a>
</pre>
</font></span></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>