Annotate non-symmetric second order tensors with components XX, YY, ...

ParaView automatically labels data components with X, Y, Z for vectors, and with XX, YY, ZZ, XY, YZ, XZ for 2nd order tensors (length-6 vectors in the VTK file), see screenshot:

I wonder why this is not implemented also for non-symmetric tensors (length-9 vectors in the VTK file)? Currently those components are just enumerated 0-8 instead:


Example VTK file:
test_tensors.vtu (5.1 KB)

Because it was not implemented, that seems easy to add though.

https://gitlab.kitware.com/paraview/paraview/-/blob/2a2273e8849869011628a10f49468f34a268ed8a/VTKExtensions/Core/vtkPVPostFilter.cxx#L164

1 Like

Right, was wondering if it was a conscious choice to exclude it. I will try to submit a patch.

Edit: https://gitlab.kitware.com/paraview/paraview/-/merge_requests/5442