# Seeking Help regarding calculation of average of concentration in a ring

**URL:** https://discourse.paraview.org/t/seeking-help-regarding-calculation-of-average-of-concentration-in-a-ring/4906
**Category:** ParaView Support
**Created:** [July 20, 2020, 9:36pm UTC](https://discourse.paraview.org/t/seeking-help-regarding-calculation-of-average-of-concentration-in-a-ring/4906 "2020-07-20T21:36:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![EvanChy](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/ecc23a/32.png) [@EvanChy](https://discourse.paraview.org/u/EvanChy)
#### Post date: [July 20, 2020, 9:36pm UTC](https://discourse.paraview.org/t/seeking-help-regarding-calculation-of-average-of-concentration-in-a-ring/4906/1 "2020-07-20T21:36:38Z")

</div>

Hi. I am hoping someone can help me with my problem.  
I have attached a .vtu file here where it shows the concentration distribution on a circular disk when opened with Paraview. The rendering should be in “Color” not “Solid Color” and also “Surface” should be enabled.  
If you look at the figure you will see a circle where half of it in blue and another half in red/white. I want to divide the circle into 20 rings (all adding up to the whole circle) and find the average of concentration in every ring. Is there any way I can do that in ParaView? Please let me know.

Best regards  
Mohammed Al-Evan Chowdhury[c2-unstructured VTK.vtu](https://discourse.paraview.org/uploads/short-url/o0DQPrQaNDagmWJlefTRXRhfC0e.vtu) (101.9 KB)

---

<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: [July 21, 2020, 6:53am UTC](https://discourse.paraview.org/t/seeking-help-regarding-calculation-of-average-of-concentration-in-a-ring/4906/2 "2020-07-21T06:53:41Z")

</div>

Sounds like something you could do by

- Computing the radius as a new field
- Extracting the circles using multiple tresholds filters on the radius
- Computing the avg concentration on each circles

This will not be easy to do in the GUI though.

---

<div class="post-metadata">

### Author: ![EvanChy](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/ecc23a/32.png) [@EvanChy](https://discourse.paraview.org/u/EvanChy)
#### Post date: [July 22, 2020, 7:27pm UTC](https://discourse.paraview.org/t/seeking-help-regarding-calculation-of-average-of-concentration-in-a-ring/4906/3 "2020-07-22T19:27:03Z")

</div>

Thank you for your help, Mathieu Westphal.  
If it is tough to do it GUI, should I need to write a code to do the job?

---

<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: [July 23, 2020, 7:37am UTC](https://discourse.paraview.org/t/seeking-help-regarding-calculation-of-average-of-concentration-in-a-ring/4906/4 "2020-07-23T07:37:45Z")

</div>

Yes, a python script would be the right way to go once you are able to do it for a single circle within the GUI.
