# Add time data saved in vtk format

**URL:** <https://community.freefem.org/t/add-time-data-saved-in-vtk-format/3296>\
**Category:** General Discussion\
**Created:** [June 8, 2024, 2:50pm UTC](https://community.freefem.org/t/add-time-data-saved-in-vtk-format/3296 "2024-06-08T14:50:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee-maximee](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/lee-maximee/32/2418_2.png) [@lee-maximee](https://community.freefem.org/u/lee-maximee)\
**Post date:** [June 8, 2024, 2:50pm UTC](https://community.freefem.org/t/add-time-data-saved-in-vtk-format/3296/1 "2024-06-08T14:50:13Z")

</div>

I am solving a time-dependent fluid mechanics problem. I want to store the velocity vector field, the pressure and the time date. Then, I want to vizualize the results with Paraview.

Here is my attempt:

```auto
// (u,v) is the velocity vector
// p is the pressure
// i*dt is the time date
savevtk("results/results"+i+".vtu", Th, [i*dt, u,v,p], dataname="time u v p", order=[0,1,1,1]);

```

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [June 8, 2024, 5:34pm UTC](https://community.freefem.org/t/add-time-data-saved-in-vtk-format/3296/2 "2024-06-08T17:34:57Z")

</div>

Use `load "PETSc"` instead of `load "iovtk"` and then use the flag `append = true`.
