I am struggling to calculate the Laplacian of vorticity vector with python calculator filter. However, I didn’t face any problem in calculating the divergence of 2D vectors and gradient of 2D vector and scalar. But I get error in calculating the laplacian since it only can be calculated to 3D vector. Any tips for calculating the laplacian of 2D vector.
vortiicty_terms.pvsm (1.7 MB)
File “C:\Program Files\ParaView 5.10.0-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\vtkmodules\numpy_interface\internal_algorithms.py”, line 254, in divergence
raise RuntimeError(‘Divergence only works with an array of 3D vectors.’ +
RuntimeError: Divergence only works with an array of 3D vectors. Input shape (42681, 3, 3)