# Axisymmetric Averaging

**URL:** https://discourse.paraview.org/t/axisymmetric-averaging/1470
**Category:** ParaView Support
**Created:** [March 14, 2019, 1:47pm UTC](https://discourse.paraview.org/t/axisymmetric-averaging/1470 "2019-03-14T13:47:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jrwrigh](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jrwrigh/32/1191_2.png) [@jrwrigh](https://discourse.paraview.org/u/jrwrigh)
#### Post date: [March 14, 2019, 1:47pm UTC](https://discourse.paraview.org/t/axisymmetric-averaging/1470/1 "2019-03-14T13:47:17Z")

</div>

So I have a CFD simulation where the domain is axisymmetric. For simplicity sake, let’s call it a tube.

Due to flow characteristics, it needs to be run in full 3D. However, it’d be nice to get statistics that take the average as if it is run as a 2D axisymmetric simulation.

In integral form, it would be (I think at least):

![image](https://discourse.paraview.org/uploads/default/original/2X/b/bdff9ddfc1238a7f937ac464f3ec4b05a1af7e2d.png)  
Where part [-]a takes the line average of the circle and part [-]b divides by the circle length. I know the ‘r’ would cancel each other out, I figured I’d just be explicit.

It would be some form of programmable filter, but I can’t figure out how exactly I’d go about doing it through that. Most of the programmable filter’s I’ve done up to now are just taking existing field quantities, manipulating them, then saving them to the exact same “location” point. Any ideas/or help?

For reference, the [TCFD](https://www.cfdsupport.com/turbo-blade-post-user-manual/node51.html) from CFD Support (if that’s the company name) has this for Paraview, but it appears proprietary.

For tagging purposes: meridional averaging, circumferential averaging

---

<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: [July 9, 2020, 10:14pm UTC](https://discourse.paraview.org/t/axisymmetric-averaging/1470/2 "2020-07-09T22:14:08Z")

</div>

I’ve been working on a similar problem, trying to compute spherical averages. I made some progress, if you’re still interested in this topic.

---

<div class="post-metadata">

### Author: ![jrwrigh](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jrwrigh/32/1191_2.png) [@jrwrigh](https://discourse.paraview.org/u/jrwrigh)
#### Post date: [July 10, 2020, 12:39am UTC](https://discourse.paraview.org/t/axisymmetric-averaging/1470/3 "2020-07-10T00:39:59Z")

</div>

While I don’t really need it anymore, I’m still definitely interested in a solution to it as I often need to do other variants of spacial averaging.

---

<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: [July 10, 2020, 5:09am UTC](https://discourse.paraview.org/t/axisymmetric-averaging/1470/4 "2020-07-10T05:09:44Z")

</div>

I had some first steps here: [Old-style Programmable Filter](https://discourse.paraview.org/t/old-style-programmable-filter/3868)

Let me see if I can dig up my most current filter. I’ll update it there.
