Skip to content

Incorrect order for 6-component VTK symmTensor

order reference
OpenFOAM XX, XY, XZ, YY, YZ, ZZ SymmTensor
VTK XX, YY, ZZ, XY, YZ, XZ vtkMath::TensorFromSymmetricTensor

The reordering is thus (0 3 5 1 4 2) in either direction, or

swap(1, 3)
swap(2, 5)