<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello experts,<br>
<br>
I am trying to generate streamlines using the streamtracer filter which I am calling from within a programmable filter. My input data is in .pvti format and I am running in a multiprocessor environment [16 processors]. I was requesting data to be split up among
 the processors using the request information script. And then trying to generate a streamline at a given point.<br>
<br>
Although my original goal was to iterate over the whole data set and draw small streamlines at each point, right now I am not able to generate even a small streamline at a given point. It always returns 0 length streamlines. Although I am able to do it in a
 single core machine without parallelism.<br>
<br>
And when I use streamtracer filter outside the programmable filter, it works fine and returns the streamline of non-zero length.<br>
<br>
Can anyone point me towards the solution to this problem?<br>
<br>
My sample code is attached below:<br>
###################################<br>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<table style="margin: 4px;">
<tbody>
<tr>
<td style="border: medium none;">
<p style="margin: 0px; text-indent: 0px;">import paraview.vtk as vtk</p>
<p style="margin: 0px; text-indent: 0px;"><br>
</p>
<p style="margin: 0px; text-indent: 0px;">input = self.GetInput()</p>
<p style="margin: 0px; text-indent: 0px;"><br>
</p>
<p style="margin: 0px; text-indent: 0px;">posX=437</p>
<p style="margin: 0px; text-indent: 0px;">posY=372</p>
<p style="margin: 0px; text-indent: 0px;">posZ=20.5</p>
<p style="margin: 0px; text-indent: 0px;"><br>
</p>
<p style="margin: 0px; text-indent: 0px;">streamTracer = vtk.vtkStreamTracer()</p>
<p style="margin: 0px; text-indent: 0px;">streamTracer.SetInput(input)</p>
<p style="margin: 0px; text-indent: 0px;">streamTracer.SetStartPosition(posX,posY,posZ)</p>
<p style="margin: 0px; text-indent: 0px;">streamTracer.SetMaximumPropagation(2000)</p>
<p style="margin: 0px; text-indent: 0px;">streamTracer.SetInitialIntegrationStep(0.5)</p>
<p style="margin: 0px; text-indent: 0px;">streamTracer.SetIntegrationDirection(0)</p>
<p style="margin: 0px; text-indent: 0px;">streamTracer.SetIntegratorType(0)</p>
<p style="margin: 0px; text-indent: 0px;">streamTracer.SetMaximumNumberOfSteps(2000)</p>
<p style="margin: 0px; text-indent: 0px;">streamTracer.SetTerminalSpeed(1e-12)</p>
<p style="margin: 0px; text-indent: 0px;">streamTracer.Update()</p>
<p style="margin: 0px; text-indent: 0px;"><br>
</p>
<p style="margin: 0px; text-indent: 0px;">streamLines = streamTracer.GetOutput()</p>
<p style="margin: 0px; text-indent: 0px;">print(streamLines.GetNumberOfPoints())</p>
</td>
</tr>
</tbody>
</table>
<br>
###################################<br>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;">Thanks and best regards,
<div style="font-family: Tahoma; font-size: 13px;"></div>
<div>Ayan Biswas</div>
<div>CSE (PhD) student,</div>
<div>OSU</div>
</div>
</div>
</div>
</body>
</html>