Writing tensors in VTK

  1. I am getting the following error

Generic Warning: In C:\bbd\8fbebceb\build\superbuild\paraview\src\VTK\IO\Legacy\vtkDataReader.cxx, line 1506*
Error reading ascii data. Possible mismatch of datasize with declaration.*

when loading the following
TENSORS Strains float
-2.920000e-04 -2.920000e-04 3.541000e-03 0.000000e+00 1.460000e-04 1.460000e-04
-2.920000e-04 -2.920000e-04 3.541000e-03 0.000000e+00 1.460000e-04 -1.460000e-04
Any idea what may be wrong?
2. How can I specify the 6 components of the tensor (i.e. sig_xx, sig_yy, etc.)?

VTK tensors can have 6 or 9 components.
9 components are the default. If your tensor field has 6 components, it should be declared as TENSORS6 instead of TENSORS.
Hope this helps,