# save vtk legacy 2.0 format

**URL:** https://discourse.paraview.org/t/save-vtk-legacy-2-0-format/16017
**Category:** ParaView Support
**Created:** [January 22, 2025, 9:30am UTC](https://discourse.paraview.org/t/save-vtk-legacy-2-0-format/16017 "2025-01-22T09:30:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![otaolafr](https://discourse.paraview.org/user_avatar/discourse.paraview.org/otaolafr/32/3595_2.png) [@otaolafr](https://discourse.paraview.org/u/otaolafr)
#### Post date: [January 22, 2025, 9:30am UTC](https://discourse.paraview.org/t/save-vtk-legacy-2-0-format/16017/1 "2025-01-22T09:30:44Z")

</div>

Hello,  
I would like to save my mesh into # vtk DataFile Version 2.0 , is this possible? when I save in legacy vtk i dont get the option to save in specific version (similar export to the one of gmsh)  
thanks in advance.

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [January 22, 2025, 2:10pm UTC](https://discourse.paraview.org/t/save-vtk-legacy-2-0-format/16017/2 "2025-01-22T14:10:12Z")

</div>

Indeed, you cannot.  
But 2.0 is a pretty old version of a legacy format, I would not advise to use it anymore. Can’t you use another file format?

---

<div class="post-metadata">

### Author: ![otaolafr](https://discourse.paraview.org/user_avatar/discourse.paraview.org/otaolafr/32/3595_2.png) [@otaolafr](https://discourse.paraview.org/u/otaolafr)
#### Post date: [January 22, 2025, 2:15pm UTC](https://discourse.paraview.org/t/save-vtk-legacy-2-0-format/16017/3 "2025-01-22T14:15:26Z")

</div>

Sadly it is a library that reads in that format. So I need that exact format 😕

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [January 22, 2025, 2:30pm UTC](https://discourse.paraview.org/t/save-vtk-legacy-2-0-format/16017/4 "2025-01-22T14:30:49Z")

</div>

Well, VTK format 2.0 version is obsolete since [january 2000](https://gitlab.kitware.com/vtk/vtk/-/commit/557dfcc699b42bd38e79b178b1096180631cc0e5), even before the first release of ParaView …

So I think you should ask community from your other lib about which other file format are available, or about they create such files nowadays.  
Also, as it is a textual file format, you can maybe find some doc and write that by your own ?

---

<div class="post-metadata">

### Author: ![otaolafr](https://discourse.paraview.org/user_avatar/discourse.paraview.org/otaolafr/32/3595_2.png) [@otaolafr](https://discourse.paraview.org/u/otaolafr)
#### Post date: [January 22, 2025, 2:33pm UTC](https://discourse.paraview.org/t/save-vtk-legacy-2-0-format/16017/5 "2025-01-22T14:33:35Z")

</div>

I did already (well in Salome python instead of paraview) but I thought that if the function was available in paraview it would be much much more efficient than mine as I have not the same level of programing as you 😅  
Thanks in any case!

---

<div class="post-metadata">

### Author: ![s1291](https://discourse.paraview.org/user_avatar/discourse.paraview.org/s1291/32/15950_2.png) [@s1291](https://discourse.paraview.org/u/s1291)
#### Post date: [January 23, 2025, 1:43pm UTC](https://discourse.paraview.org/t/save-vtk-legacy-2-0-format/16017/6 "2025-01-23T13:43:06Z")

</div>

FWIW, OpenFOAM v2412 sampling still outputs in that format. An example below is obtained by sampling the velocity across a line in an OpenFOAM simulation.

```auto
# vtk DataFile Version 2.0
time='0.00138462'
ASCII
DATASET POLYDATA
FIELD FieldData 1
TimeValue 1 1 float
0.00138462
                                                                                                                                                POINTS 20 float
5 -3 0.1 5 -2.68421 0.1 5 -2.36842 0.1 5 -2.05263 0.1 5 -1.73684 0.1 5 -1.42105 0.1 5 -1.10526 0.1 5 -0.789474 0.1 5 -0.473684 0.1 5 -0.157895 0.1 5 0.157895 0.1 5 0.473684 0.1 5 0.789474 0.1 5 1.10526 0.1 5 1.42105 0.1 5 1.73684 0.1 5 2.05263 0.1 5 2.36842 0.1 5 2.68421 0.1 5 3 0.1 POINT_DATA 20 FIELD FieldData 1 U 3 20 float 7.01593 0.0299716 1.31712e-22 7.01191 0.032542 -1.05369e-23 7.0074 0.0344083 1.11786e-23 7.00239 0.0356011 7.16873e-25 6.99685 0.0359133 4.09175e-24 6.99122 0.035258 3.66502e-24 6.9856 0.0335462 -2.95632e-22 6.98025 0.0306781 1.31733e-22 6.97549 0.0267164 4.33298e-22 6.97158 0.0218567 2.16204e-22 6.96868 0.0163384 1.50871e-23 6.96691 0.0103733 4.48036e-25 6.96646 0.00421344 -1.48477e-23 6.96743 -0.00182494 -2.31256e-22 6.96972 -0.00738835 1.29976e-21 6.97306 -0.0122105 -3.10159e-22 6.97727 -0.0161784 -2.12576e-22 6.98187 -0.0188964 1.88847e-22 6.98667 -0.0205251 -1.03502e-22 6.99146 -0.0210504 9.1733e-23 

```

I’m able to load this file in ParaView 5.13.2 without any issues.
