# how to perform Tim averaging of velocity for VTK file having variable number of computational cells

**URL:** https://discourse.paraview.org/t/how-to-perform-tim-averaging-of-velocity-for-vtk-file-having-variable-number-of-computational-cells/12373
**Category:** ParaView Support
**Created:** [June 22, 2023, 11:42pm UTC](https://discourse.paraview.org/t/how-to-perform-tim-averaging-of-velocity-for-vtk-file-having-variable-number-of-computational-cells/12373 "2023-06-22T23:42:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Omar1992](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/o/22d042/32.png) [@Omar1992](https://discourse.paraview.org/u/Omar1992)
#### Post date: [June 22, 2023, 11:42pm UTC](https://discourse.paraview.org/t/how-to-perform-tim-averaging-of-velocity-for-vtk-file-having-variable-number-of-computational-cells/12373/1 "2023-06-22T23:42:05Z")

</div>

Hi  
I have VTK output of CFD analysis and I could not perform time averaging using Temporal statistics for velocity vector components as it shows error ( the number of cells are not constant very time step). The reason that I have variable number of cells every time step is because my simulation was featured with dynamic mesh adaption. How can I do that with this ? I’m aiming to calculate turbulent kinetic energy and it needs to determined the velocity average with time for all time steps.

---

<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: [June 23, 2023, 10:38am UTC](https://discourse.paraview.org/t/how-to-perform-tim-averaging-of-velocity-for-vtk-file-having-variable-number-of-computational-cells/12373/2 "2023-06-23T10:38:05Z")

</div>

You could compute statistics for each timesteps and then accumulate the results manually ?

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [June 23, 2023, 12:00pm UTC](https://discourse.paraview.org/t/how-to-perform-tim-averaging-of-velocity-for-vtk-file-having-variable-number-of-computational-cells/12373/3 "2023-06-23T12:00:26Z")

</div>

Would resampling the fields onto a static mesh work?
