# .vtu File doesn't play all solution in a "Collection" in Paraview

**URL:** https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540
**Category:** ParaView Support
**Created:** [May 2, 2024, 9:21am UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540 "2024-05-02T09:21:17Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Darren\_Lam](https://discourse.paraview.org/user_avatar/discourse.paraview.org/darren_lam/32/14295_2.png) [@Darren\_Lam](https://discourse.paraview.org/u/Darren_Lam)
#### Post date: [May 2, 2024, 9:21am UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/1 "2024-05-02T09:21:17Z")

</div>

Hi everyone,

I’m currently trying to play a .vtu file which contains all the timesteps of my solution but when Paraview read my .vtu file, it somehow partitioned those timesteps into individual Cell/Point Array. How do I combine them all together so that I can play all of them in on go ? Thank you

---

<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: [May 2, 2024, 9:23am UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/2 "2024-05-02T09:23:50Z")

</div>

Please share your data

---

<div class="post-metadata">

### Author: ![Darren\_Lam](https://discourse.paraview.org/user_avatar/discourse.paraview.org/darren_lam/32/14295_2.png) [@Darren\_Lam](https://discourse.paraview.org/u/Darren_Lam)
#### Post date: [May 2, 2024, 9:45am UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/3 "2024-05-02T09:45:38Z")

</div>

> **[Pressure.vtu](https://drive.google.com/file/d/1Q1AuSgKc9DQ1muBs5FJ2mcP3qWWudGyC/view?usp=sharing)**
>
> Google Drive file.

this the data, thank you for the swift reply.

---

<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: [May 2, 2024, 1:48pm UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/4 "2024-05-02T13:48:42Z")

</div>

I’m afraid your data is not temporal, you need to convert it to a temporal dataset, and ParaView cannot do that automatically.

It can be done manually and you could write a python script to automatize that manual operation.

---

<div class="post-metadata">

### Author: ![Darren\_Lam](https://discourse.paraview.org/user_avatar/discourse.paraview.org/darren_lam/32/14295_2.png) [@Darren\_Lam](https://discourse.paraview.org/u/Darren_Lam)
#### Post date: [May 3, 2024, 9:43pm UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/5 "2024-05-03T21:43:16Z")

</div>

Hi thanks for the feedback. I’m currently still new to the VTK package in Python. It will be very generous of you to point out the functions that I would require to perform said correction to my data. Thank you !

---

<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: [May 6, 2024, 7:09am UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/6 "2024-05-06T07:09:46Z")

</div>

> [@Darren\_Lam](#):
>
> I’m currently still new to the VTK package in Python.

Are you using ParaView or VTK ?

---

<div class="post-metadata">

### Author: ![Darren\_Lam](https://discourse.paraview.org/user_avatar/discourse.paraview.org/darren_lam/32/14295_2.png) [@Darren\_Lam](https://discourse.paraview.org/u/Darren_Lam)
#### Post date: [May 6, 2024, 7:08pm UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/7 "2024-05-06T19:08:39Z")

</div>

I’m using Paraview to view the .vtu file. Can I do it in Paraview software itself ? Or do I need to do it in Python script ?

---

<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: [May 7, 2024, 7:32am UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/8 "2024-05-07T07:32:32Z")

</div>

> [@Darren\_Lam](#):
>
> I’m using Paraview to view the .vtu file. Can I do it in Paraview software itself

If you mean usual filters, no.

> Or do I need to do it in Python script ?

You have two ways to do this.

1. Do it using VTKPython in order to create files on disk that will be correctly formatted
2. Do it in a programmable filter using VTKPython that will dynamically modify the data the way you want.

Both solution are quite similar tbh.

---

<div class="post-metadata">

### Author: ![Darren\_Lam](https://discourse.paraview.org/user_avatar/discourse.paraview.org/darren_lam/32/14295_2.png) [@Darren\_Lam](https://discourse.paraview.org/u/Darren_Lam)
#### Post date: [May 7, 2024, 12:03pm UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/9 "2024-05-07T12:03:27Z")

</div>

How do I start with the second method ? Is there an online tutorial for it ?

---

<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: [May 7, 2024, 12:04pm UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/10 "2024-05-07T12:04:06Z")

</div>

[https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html](https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html)

---

<div class="post-metadata">

### Author: ![Darren\_Lam](https://discourse.paraview.org/user_avatar/discourse.paraview.org/darren_lam/32/14295_2.png) [@Darren\_Lam](https://discourse.paraview.org/u/Darren_Lam)
#### Post date: [May 9, 2024, 2:43pm UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/11 "2024-05-09T14:43:35Z")

</div>

What makes the DataArray temporal ? What form should my DataArray should take ? Could you give me an example ?

---

<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: [May 14, 2024, 12:18pm UTC](https://discourse.paraview.org/t/vtu-file-doesnt-play-all-solution-in-a-collection-in-paraview/14540/12 "2024-05-14T12:18:04Z")

</div>

They are many examples in the link I shared.
