# Calculate Streamline Density

**URL:** https://discourse.paraview.org/t/calculate-streamline-density/7997
**Category:** ParaView Support
**Created:** [September 14, 2021, 3:03pm UTC](https://discourse.paraview.org/t/calculate-streamline-density/7997 "2021-09-14T15:03:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![woodscn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/woodscn/32/3226_2.png) [@woodscn](https://discourse.paraview.org/u/woodscn)
#### Post date: [September 14, 2021, 3:03pm UTC](https://discourse.paraview.org/t/calculate-streamline-density/7997/1 "2021-09-14T15:03:58Z")

</div>

As you can see in the picture, the streamlines are squeezed together in the region of the bubbles. I’m interested in displaying the degree to which they are squeezed; something like a streamline density? Does anyone have any ideas on how I might compute such a thing? The best idea I’ve had so far is to take Slices and run the PointDensity VTK filter, then add them back up, but that seems fairly complicated.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/2f839d9d2a0d0fcb8249d0d488a61144e940ed50.jpeg)

---

<div class="post-metadata">

### Author: ![supervinci86](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@supervinci86](https://discourse.paraview.org/u/supervinci86)
#### Post date: [September 15, 2021, 3:31am UTC](https://discourse.paraview.org/t/calculate-streamline-density/7997/2 "2021-09-15T03:31:43Z")

</div>

Hi Nathan,  
not sure I have fully understood you aim, but if I see it right, isn’t the particle speed a measure of the streamline density (the higher is the speed, “smaller” are the “channels” of the particles, so higher is the streamline density)? I do not know which could be the best way to display it (it also depends on your needs), but I believe this trick could help you.

---

<div class="post-metadata">

### Author: ![woodscn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/woodscn/32/3226_2.png) [@woodscn](https://discourse.paraview.org/u/woodscn)
#### Post date: [September 15, 2021, 4:31pm UTC](https://discourse.paraview.org/t/calculate-streamline-density/7997/3 "2021-09-15T16:31:24Z")

</div>

That can be true, but only for a fluid which follows the Bernoulli equation. That’s not something I can guarantee, here.
