# Averaging data over a custom geometric shape source

**URL:** https://discourse.paraview.org/t/averaging-data-over-a-custom-geometric-shape-source/7777
**Category:** ParaView Support
**Created:** [August 6, 2021, 12:33pm UTC](https://discourse.paraview.org/t/averaging-data-over-a-custom-geometric-shape-source/7777 "2021-08-06T12:33:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hconel](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hconel/32/1782_2.png) [@hconel](https://discourse.paraview.org/u/hconel)
#### Post date: [August 6, 2021, 12:33pm UTC](https://discourse.paraview.org/t/averaging-data-over-a-custom-geometric-shape-source/7777/1 "2021-08-06T12:33:13Z")

</div>

Hi,  
I have a CFD solution in which I wish to average the pressure over, say, a disk of 63m radius, which is located in an arbitrary location within the mesh.  
I’m posting a picture for reference. I have created the disk from “Sources \> Geometric Shapes \> Disk” in Paraview (colored yellow for distinction).

 ![Screenshot_2021-08-06_15-32-46](https://discourse.paraview.org/uploads/default/original/2X/f/f6eb0239d8769b6deab539bcccadac6c49cc6dbf.jpeg)

Can I do that? If so, how?  
Thanks in advance for your time and support,  
Huseyin.

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [August 6, 2021, 12:56pm UTC](https://discourse.paraview.org/t/averaging-data-over-a-custom-geometric-shape-source/7777/2 "2021-08-06T12:56:23Z")

</div>

ResampleWithDataset where the source is your data and the destination is the disk.  
then  
DescriptiveStatistics

---

<div class="post-metadata">

### Author: ![hconel](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hconel/32/1782_2.png) [@hconel](https://discourse.paraview.org/u/hconel)
#### Post date: [August 6, 2021, 1:21pm UTC](https://discourse.paraview.org/t/averaging-data-over-a-custom-geometric-shape-source/7777/3 "2021-08-06T13:21:17Z")

</div>

Hello Mr. Lipsa,  
Thanks for your quick reply. While I was waiting for a reply, I have discovered the “Point Dataset Interpolator” filter, which I find to be quite similar to the “Resample with Dataset” filter. Do they function the same?  
Another note is that; even if I modify the “Transforming” properties of the “Disk” itself (i.e. translation, orientation) and the disk seems to be moved to its correct new position, after adding the interpolation filter, the data from its **original (default)** position is interpolated instead of its **transformed** position that I want! The only way I can overcome this is to use a separate “Transform” filter. This is quite counter-intuitive, is it a bug?  
Thanks,  
Huseyin

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [August 6, 2021, 1:48pm UTC](https://discourse.paraview.org/t/averaging-data-over-a-custom-geometric-shape-source/7777/4 "2021-08-06T13:48:27Z")

</div>

> Hello Mr. Lipsa,  
> Thanks for your quick reply. While I was waiting for a reply, I have discovered the “Point Dataset Interpolator” filter, which I find to be quite similar to the “Resample with Dataset” filter. Do they function the same?

Point Dataset Interpolator works on points clouds. See Help \> Reader, Filter and Writer Reference

> Another note is that; even if I modify the “Transforming” properties of the “Disk” itself (i.e. translation, orientation) and the disk seems to be moved to its correct new position, after adding the interpolation filter, the data from its **original** position is interpolated instead of its **new** position that I want! The only way I can overcome this is to use a separate “Transform” filter. This is quite counter-intuitive, is it a bug?

Make sure that when you set your destination for ResampleWithDataset you select Transform. That is, you are using the data created by the Transform filter to resample.

---

<div class="post-metadata">

### Author: ![hconel](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hconel/32/1782_2.png) [@hconel](https://discourse.paraview.org/u/hconel)
#### Post date: [August 10, 2021, 9:22am UTC](https://discourse.paraview.org/t/averaging-data-over-a-custom-geometric-shape-source/7777/5 "2021-08-10T09:22:53Z")

</div>

Thanks, I’ll try that.
