# stream tracer using cell centred vector field

**URL:** https://discourse.paraview.org/t/stream-tracer-using-cell-centred-vector-field/10365
**Category:** Development
**Tags:** vtk
**Created:** [September 20, 2022, 9:21pm UTC](https://discourse.paraview.org/t/stream-tracer-using-cell-centred-vector-field/10365 "2022-09-20T21:21:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Omar\_Elsayed](https://discourse.paraview.org/user_avatar/discourse.paraview.org/omar_elsayed/32/10009_2.png) [@Omar\_Elsayed](https://discourse.paraview.org/u/Omar_Elsayed)
#### Post date: [September 20, 2022, 9:21pm UTC](https://discourse.paraview.org/t/stream-tracer-using-cell-centred-vector-field/10365/1 "2022-09-20T21:21:06Z")

</div>

Paraview supports a filter called “stream tracer with custom source” which does not exist in VTK, as far as I have searched. Interestingly, the filter differs from the simple streamTracer in that it does not work with cell-centred vector field. Is there a suggestion to get it working in either VTK or paraview?

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [September 20, 2022, 9:39pm UTC](https://discourse.paraview.org/t/stream-tracer-using-cell-centred-vector-field/10365/2 "2022-09-20T21:39:19Z")

</div>

To run streamtracer on a cell-centered array you may first apply the “Cell Data to Point Data” filter that " _averages the values of the cell attributes of the cells surrounding a point to compute point attributes_" and then apply the Streamtracer filter.

---

<div class="post-metadata">

### Author: ![berkgeveci](https://discourse.paraview.org/user_avatar/discourse.paraview.org/berkgeveci/32/1464_2.png) [@berkgeveci](https://discourse.paraview.org/u/berkgeveci)
#### Post date: [September 21, 2022, 12:58pm UTC](https://discourse.paraview.org/t/stream-tracer-using-cell-centred-vector-field/10365/3 "2022-09-21T12:58:14Z")

</div>

Both filters are the same in VTK. ParaView simply hardwires the Stream Tracer filter’s source input to be one of the predetermined sources such as line and point. It is also coded to run the cell data to point data filter under the covers. I am not sure why the other one doesn’t do that. I am guessing that someone left it out of the configuration XML file.
