I am required to calculate the transpose of a tensor. How can I calculate the transpose in Paraview. Can someone please provide some inputs how this can be done?
You should be able to write any single-element operation in a PythonCalculator filter.
I had to calculate the transpose of the velocity gradient tensor. I followed the following steps:
- First I calculated the gradient of the velocity using the Gradients of Unstructured DataSet filter. The Result Array Name was given as Gradient
- Then I applied the PythonCalculator filter. The code I entered was numpy.transpose(Gradient)
I got an error which says Could not find a suitable VTK type for object
Can you please tell where I have made a mistake and whether the steps I followed are correct?