View a tecplot (.tec) file in paraview

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?

.tec file works perfectly here.

Can you share your dataset ?

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] + (deltunew[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 (33.3 KB)
momentum_1.tec (33.7 KB)

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?

The warning can be safely ignored.

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

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.