python calculator - laplacian(U) calculation
Hi everyone,
I am currently trying to evaluate through python calculator the laplacian of U, however such function only takes as input scalars. I wanted thus to write something similar to Code:
laplacian(U_X) Code:
File "/opt/paraviewopenfoam56/lib/python2.7/site-packages/paraview/calculator.py", line 192, in execute Thanks in advance. |
Nevermind, I figured it out, it is probably basic knowledge but I will explain anyway.
The syntax to extract the single component from the vector and evaluate the laplacian is Code:
laplacian(U[:,0]) |
All times are GMT -4. The time now is 23:33. |