Could not read dimensions or extents from the file

I am having difficulty loading a set of vtk files in Paraview.

Attached is the matlab code for the file and two vtk output files.
time_1.vtk (236.2 KB)
time_100.vtk (236.2 KB)
write_vtk_grid_values.m (1.8 KB)

There some issues with the files.

  1. Line 5 . Remove quote ’
  2. Lines 4103 4105 are
POINT_DATA  4096
SCALARS CONfloat 1
fLOOKUP_TABLEdefault

they should be

POINT_DATA  4096
SCALARS CON float 1
LOOKUP_TABLE default

It worked. Thank you very much for your prompt response.

1 Like