# Using programmable filter to get time averaged values

**URL:** https://discourse.paraview.org/t/using-programmable-filter-to-get-time-averaged-values/6719
**Category:** ParaView Support
**Created:** [March 16, 2021, 4:14pm UTC](https://discourse.paraview.org/t/using-programmable-filter-to-get-time-averaged-values/6719 "2021-03-16T16:14:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Teekay](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/898d66/32.png) [@Teekay](https://discourse.paraview.org/u/Teekay)
#### Post date: [March 16, 2021, 4:14pm UTC](https://discourse.paraview.org/t/using-programmable-filter-to-get-time-averaged-values/6719/1 "2021-03-16T16:14:11Z")

</div>

Dear all,

I have a question that is about post-processing using Paraview to extract time-averaged values.

For my simulations (using fenics) of flow in the human aorta I am currently calculating the instantaneous wall shear stress (WSS) values at the surface of the geometry.  
Now, additionally I would like to calculate the time averaged wall shear stress and the oscillating shear index.

![OSI WSS](https://discourse.paraview.org/uploads/default/original/2X/e/e293c34c6966282492fce06639af71701c4496d9.png)

My WSS values for every timestep are saved to a timeseries .xdmf file that points to a h5 file.  
In paraview I can access the WSS values for every timestep by reading this .xdmf file.

I would like to average these WSS values over one cardiac cycle.

Would it be possible to use Programmable Filter to compute the oscillating shear index (OSI) and time averaged Wall Shear Stress (Tawss)? Perhaps, could you refer me to an example of how to use this filter for a purpose such as this?

Thank you in advance for your time.

With kind regards,

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [March 17, 2021, 11:49pm UTC](https://discourse.paraview.org/t/using-programmable-filter-to-get-time-averaged-values/6719/2 "2021-03-17T23:49:42Z")

</div>

Hello,

As an alternative to using programmable filter, there is a TemporalStatistics filter for this task. This could compute the average value of WSS over time of each point.  
` Filters > Temporal > Temporal Statistics`
