# View a tecplot (.tec) file in paraview

**URL:** https://discourse.paraview.org/t/view-a-tecplot-tec-file-in-paraview/1574
**Category:** ParaView Support
**Created:** [April 1, 2019, 1:08am UTC](https://discourse.paraview.org/t/view-a-tecplot-tec-file-in-paraview/1574 "2019-04-01T01:08:49Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![achodankar](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@achodankar](https://discourse.paraview.org/u/achodankar)
#### Post date: [April 1, 2019, 1:08am UTC](https://discourse.paraview.org/t/view-a-tecplot-tec-file-in-paraview/1574/1 "2019-04-01T01:08:50Z")

</div>

ERROR: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/IO/Geometry/vtkTecplotReader.cxx, line 1902

vtkTecplotReader (0x5565904a8710): /home/achodankar/Documents/Codes//momentum\_0.tec: The record type V1.0 found in the file is unknown.

I am unable to upload a .tec file in paraview. Can anyone point out the problem in 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: [April 1, 2019, 8:19am UTC](https://discourse.paraview.org/t/view-a-tecplot-tec-file-in-paraview/1574/2 "2019-04-01T08:19:59Z")

</div>

.tec file works perfectly here.

Can you share your dataset ?

---

<div class="post-metadata">

### Author: ![achodankar](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@achodankar](https://discourse.paraview.org/u/achodankar)
#### Post date: [April 1, 2019, 1:52pm UTC](https://discourse.paraview.org/t/view-a-tecplot-tec-file-in-paraview/1574/3 "2019-04-01T13:52:35Z")

</div>

I used this code to create a .tec file. I have attached herein the corresponding files. I would really appreciate any suggestions.

using namespace std;

double momen\_tecplot(int ni, double delt, double x[][50], double y[][50], double xnew[][50], double ynew[][50], double u[][50], double uincr[][50], double unew[][50], double v[][50], double vincr[][50], double vnew[][50], double H[][50])  
{  
double t1 = 0;  
int w1 = 0;  
ofstream myfile5;  
while (t1 \< 2)  
{  
myfile5.open(“momentum\_”+ to\_string(w1) + “.tec”);  
cout \<\<“TECPLOT file dumped”\<\<“momentum\_”\<\<w1\<\<".tec"\<\< endl;  
myfile5 \<\< “TITLE=” \<\< “NadNLSW v1.0 Tecplot Output”\<\< endl;  
myfile5 \<\< “VARIABLES=”\<\< “x,” \<\< “y,” \<\< “u,” \<\< “v,” \<\< “H,” \<\< endl;  
myfile5 \<\< “ZONE F=POINT, I=” \<\< ni \<\< “,J=”\<\< 50 \<\< endl ;  
if (t1 == 0)  
{  
for (int i = 0; i \< ni; i++)  
{  
for (int j = 0; j \< 50; j++)  
{   
myfile5 \<\< x[i][j] \<\< “,” \<\< y[i][j] \<\< “,” \<\< u[i][j] \<\< “,” \<\< v[i][j] \<\< “,” \<\< H[i][j] \<\< endl;  
}  
}  
t1 = t1 + delt;  
myfile5.close();  
}  
else  
{  
for (int i = 0; i \< ni; i++)  
{  
for (int j = 0; j \< 50; j++)  
{  
unew[i][j] = u[i][j] + uincr[i][j];  
vnew[i][j] = v[i][j] + vincr[i][j];  
xnew[i][j] = x[i][j] + (delt_unew[i][j]);  
ynew[i][j] = y[i][j] + (delt_vnew[i][j]);  
myfile5 \<\< xnew[i][j] \<\< “,” \<\< ynew[i][j] \<\< “,” \<\< unew[i][j] \<\< “,” \<\< vnew[i][j] \<\< “,” \<\< H[i][j] \<\< endl;  
}  
}  
t1 = t1 + delt;  
myfile5.close();  
}  
w1+=1;  
}  
}  
[momentum\_0.tec](https://discourse.paraview.org/uploads/default/original/2X/2/2bec0db6db9e0bb25238f0f3cc9a6dad1062bce9.tec) (33.3 KB)  
[momentum\_1.tec](https://discourse.paraview.org/uploads/default/original/2X/2/233666e268d2a6eef0bffc67fc92ab3b166842db.tec) (33.7 KB)

---

<div class="post-metadata">

### Author: ![achodankar](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@achodankar](https://discourse.paraview.org/u/achodankar)
#### Post date: [April 1, 2019, 4:28pm UTC](https://discourse.paraview.org/t/view-a-tecplot-tec-file-in-paraview/1574/4 "2019-04-01T16:28:39Z")

</div>

After excluding the TITLE line from the code, the .tec file is working in PARAVIEW and giving me the respective plots. However there is a warning error " Generic Warning: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Rendering/Volume/vtkVolumeTextureMapper3D.cxx, line 680

vtkVolumeTextureMapper3D::vtkVolumeTextureMapper3D was deprecated for VTK 7.0 and will be removed in a future version.

Generic Warning: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Rendering/VolumeOpenGL/vtkOpenGLVolumeTextureMapper3D.cxx, line 57

vtkOpenGLVolumeTextureMapper3D::vtkOpenGLVolumeTextureMapper3D was deprecated for VTK 7.0 and will be removed in a future version." Is there a way to fix this issue?

---

<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: [April 4, 2019, 6:11pm UTC](https://discourse.paraview.org/t/view-a-tecplot-tec-file-in-paraview/1574/5 "2019-04-04T18:11:58Z")

</div>

The warning can be safely ignored.

You can just use a more recent version of ParaView to see it disappear.

---

<div class="post-metadata">

### Author: ![aquanaut](https://discourse.paraview.org/user_avatar/discourse.paraview.org/aquanaut/32/1302_2.png) [@aquanaut](https://discourse.paraview.org/u/aquanaut)
#### Post date: [July 26, 2020, 9:12am UTC](https://discourse.paraview.org/t/view-a-tecplot-tec-file-in-paraview/1574/6 "2020-07-26T09:12:28Z")

</div>

hi Mathieu,I load data of .plt format from tecplot.The “point arrays” and “cell arrays” data are plotted very well in tecplot but failed to plot “cell arrays” with .plt format in paraview.

---

<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: [August 4, 2020, 12:15pm UTC](https://discourse.paraview.org/t/view-a-tecplot-tec-file-in-paraview/1574/7 "2020-08-04T12:15:21Z")

</div>

Welcome to ParaView.  
Please avoid necrop bumping and open your own topic.

---

<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: [August 4, 2020, 12:15pm UTC](https://discourse.paraview.org/t/view-a-tecplot-tec-file-in-paraview/1574/8 "2020-08-04T12:15:25Z")

</div>


