# Flow visualization.(Forward/Backward)

**URL:** https://discourse.paraview.org/t/flow-visualization-forward-backward/16344
**Category:** ParaView Support
**Created:** [March 17, 2025, 12:25pm UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344 "2025-03-17T12:25:45Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![secret5514](https://discourse.paraview.org/user_avatar/discourse.paraview.org/secret5514/32/15857_2.png) [@secret5514](https://discourse.paraview.org/u/secret5514)
#### Post date: [March 17, 2025, 12:25pm UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344/1 "2025-03-17T12:25:45Z")

</div>

Hello, I have been using ParaView for three months.  
I am currently loading an Ensight file and working on the visualization of the aorta, the forward and backward flow.

 ![KakaoTalk_20250317_165414968](https://discourse.paraview.org/uploads/default/original/3X/c/a/ca3c1616d61887824b30b9cecb3c4845c7d0cfa6.png)  
I separated and visualized the forward and backward flow by computing the dot product of the normal vector (black) of the slice and the 3D velocity vector (white) using calculator filter.  
If the result is greater than zero, it is shown in red(forward flow); if it is less than zero, it is shown in blue(backward flow).  
I sliced the aorta into multiple sections and applied this method to all of them.  
However, that visualization is simply based on the separated sections of slice using glyphs. I want to map the separated flow back into the actual velocity vector voxels. In other words, I want to visualize it as if I were viewing the velocity vectors using volume rendering. Is there a way to achieve this?  
Thanks for reading. Thank you for your help!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 17, 2025, 12:27pm UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344/2 "2025-03-17T12:27:05Z")

</div>

> [@secret5514](#):
>
> using volume rendering.

Well, what about using VolumeRendering ?

---

<div class="post-metadata">

### Author: ![secret5514](https://discourse.paraview.org/user_avatar/discourse.paraview.org/secret5514/32/15857_2.png) [@secret5514](https://discourse.paraview.org/u/secret5514)
#### Post date: [March 17, 2025, 12:32pm UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344/3 "2025-03-17T12:32:48Z")

</div>

like this!! However, the velocity does not distinguish between the front and the back in this video

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 17, 2025, 12:36pm UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344/4 "2025-03-17T12:36:31Z")

</div>

Ok, well just use Volume rendering then.

Is this not working for you ?

---

<div class="post-metadata">

### Author: ![secret5514](https://discourse.paraview.org/user_avatar/discourse.paraview.org/secret5514/32/15857_2.png) [@secret5514](https://discourse.paraview.org/u/secret5514)
#### Post date: [March 17, 2025, 12:44pm UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344/5 "2025-03-17T12:44:48Z")

</div>

No, volume rendering works like the image above. I mean, I can’t tell if the speed of that volume rendering flows forward or backward. Looking like volume rendering, I want to distinguish between front and back flows.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 17, 2025, 12:54pm UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344/6 "2025-03-17T12:54:15Z")

</div>

How do you define front and back flow ?

---

<div class="post-metadata">

### Author: ![secret5514](https://discourse.paraview.org/user_avatar/discourse.paraview.org/secret5514/32/15857_2.png) [@secret5514](https://discourse.paraview.org/u/secret5514)
#### Post date: [March 17, 2025, 1:04pm UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344/7 "2025-03-17T13:04:57Z")

</div>

What you see in volume rendering is the speed of blood flow. Start from the left, go up, go past the arch, go down. This mean forward flow. But this flow doesn’t just go in one direction.

---

<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: [March 17, 2025, 5:00pm UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344/8 "2025-03-17T17:00:44Z")

</div>

Hi @secret5514 ,

If you can define the “black” vector at each point of the entire image, you could create two calculators/programmable filters, one for each type of flow.  
Then you can apply Glyph to each of them and color then as you wish.

Is your slice always aligned with one of the axes ?

---

<div class="post-metadata">

### Author: ![secret5514](https://discourse.paraview.org/user_avatar/discourse.paraview.org/secret5514/32/15857_2.png) [@secret5514](https://discourse.paraview.org/u/secret5514)
#### Post date: [March 17, 2025, 11:31pm UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344/9 "2025-03-17T23:31:55Z")

</div>

Unfortunately, no. Slice is made along the arch, so each has a different 3d normal vector.

---

<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: [March 18, 2025, 3:47pm UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344/10 "2025-03-18T15:47:25Z")

</div>

Ok, it is good though that it is along an arc. If you have an analytic description of the arc and you can define the vector at each point then you should be able to create a programmable filter to do what you want right ? Or am I missing something ?

---

<div class="post-metadata">

### Author: ![secret5514](https://discourse.paraview.org/user_avatar/discourse.paraview.org/secret5514/32/15857_2.png) [@secret5514](https://discourse.paraview.org/u/secret5514)
#### Post date: [March 19, 2025, 12:33am UTC](https://discourse.paraview.org/t/flow-visualization-forward-backward/16344/11 "2025-03-19T00:33:14Z")

</div>

Finally, I separated the velocity vector at all points and points from the center line in the programmable filter. Thank you.
