# Plotting averaged passive scalar (averaged over x) from a 2D domain (x, y) over length (y).

**URL:** https://discourse.paraview.org/t/plotting-averaged-passive-scalar-averaged-over-x-from-a-2d-domain-x-y-over-length-y/15389
**Category:** ParaView Support
**Created:** [September 13, 2024, 10:22pm UTC](https://discourse.paraview.org/t/plotting-averaged-passive-scalar-averaged-over-x-from-a-2d-domain-x-y-over-length-y/15389 "2024-09-13T22:22:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bibhas](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@bibhas](https://discourse.paraview.org/u/bibhas)
#### Post date: [September 13, 2024, 10:22pm UTC](https://discourse.paraview.org/t/plotting-averaged-passive-scalar-averaged-over-x-from-a-2d-domain-x-y-over-length-y/15389/1 "2024-09-13T22:22:02Z")

</div>

Hi, I am new to Paraview!  
I have a 2D Domain (x, y). It has velocity, pressure, and two passive scalars. I wish to plot the averaged passive scalar ( averaged in x) over the y direction.  
Thanks,  
Bibhas

---

<div class="post-metadata">

### Author: ![Gitzzly](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/c5a1d2/32.png) [@Gitzzly](https://discourse.paraview.org/u/Gitzzly)
#### Post date: [September 19, 2024, 12:13pm UTC](https://discourse.paraview.org/t/plotting-averaged-passive-scalar-averaged-over-x-from-a-2d-domain-x-y-over-length-y/15389/2 "2024-09-19T12:13:08Z")

</div>

Somehow Paraview lacks an averaging filter. The only way at the moment is to do it yourself with the programmable filter.

---

<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: [September 20, 2024, 10:43am UTC](https://discourse.paraview.org/t/plotting-averaged-passive-scalar-averaged-over-x-from-a-2d-domain-x-y-over-length-y/15389/3 "2024-09-20T10:43:35Z")

</div>

This filter exists and is called “Descriptive Statistics”. Not the best name, I agree.

---

<div class="post-metadata">

### Author: ![Gitzzly](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/c5a1d2/32.png) [@Gitzzly](https://discourse.paraview.org/u/Gitzzly)
#### Post date: [September 20, 2024, 12:47pm UTC](https://discourse.paraview.org/t/plotting-averaged-passive-scalar-averaged-over-x-from-a-2d-domain-x-y-over-length-y/15389/4 "2024-09-20T12:47:44Z")

</div>

But this filter just gives you the overall averaged values and not a spacial averaged value like it was asked for, or is there any other way to make this work?

---

<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: [September 20, 2024, 5:32pm UTC](https://discourse.paraview.org/t/plotting-averaged-passive-scalar-averaged-over-x-from-a-2d-domain-x-y-over-length-y/15389/5 "2024-09-20T17:32:02Z")

</div>

Indeed, the specific computation asked by @bibhas does not exist as a filter currently.
