# Iovtk : Read function values from vtk file

**URL:** <https://community.freefem.org/t/iovtk-read-function-values-from-vtk-file/670>\
**Category:** General Discussion\
**Created:** [November 27, 2020, 10:41am UTC](https://community.freefem.org/t/iovtk-read-function-values-from-vtk-file/670 "2020-11-27T10:41:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![akiss](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@akiss](https://community.freefem.org/u/akiss)\
**Post date:** [November 27, 2020, 10:41am UTC](https://community.freefem.org/t/iovtk-read-function-values-from-vtk-file/670/1 "2020-11-27T10:41:01Z")

</div>

Dear all,

I saved the values of a scalar field u together with the mesh Th in a .vtk file with

savevtk(“u.vtk”, Th, u, dataname=“u”, order=[1]);

Now I would like to read it in a new simulation.

mesh umeshloaded=vtkload(“u.vtk”);

loads just the mesh. How can I read the values of the field u ?

A function read procedure analogous to what is described on page 50 in the FreeFEM3D documentation

> **[Download Limit Exceeded](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.471.5986&rep=rep1&type=pdf)**

would be perfect, I think. But I do not find how to do it in FreeFem++. I’m working in 2D for the moment.

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![lparras](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/lparras/32/544_2.png) [@lparras](https://community.freefem.org/u/lparras)\
**Post date:** [April 30, 2021, 11:13am UTC](https://community.freefem.org/t/iovtk-read-function-values-from-vtk-file/670/2 "2021-04-30T11:13:34Z")

</div>

I am trying to perform something very similar. Have you managed to solve your problem?

---

<div class="post-metadata">

**Author:** ![akiss](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@akiss](https://community.freefem.org/u/akiss)\
**Post date:** [April 30, 2021, 12:56pm UTC](https://community.freefem.org/t/iovtk-read-function-values-from-vtk-file/670/3 "2021-04-30T12:56:28Z")

</div>

No, I didn’t have any answer, and unfortunately I didn’t manage to read field values from .vtk file myself.  
Therefore I write now the field values in separate ordinary textfiles for future use in FreeFem simulations.  
Best,

---

<div class="post-metadata">

**Author:** ![AdrienLer](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@AdrienLer](https://community.freefem.org/u/AdrienLer)\
**Post date:** [February 14, 2023, 1:08pm UTC](https://community.freefem.org/t/iovtk-read-function-values-from-vtk-file/670/4 "2023-02-14T13:08:09Z")

</div>

Hello,

Is there now a viable solution to this issue, I am also looking for it.

Thanks
