CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Python calculator for divergence (https://www.cfd-online.com/Forums/paraview/108589-python-calculator-divergence.html)

ali jafari October 27, 2012 09:11

Python calculator for divergence
 
hi

I want to calculate velocity divergence , I search about it and find Python calculator filter but I can't use it , I run tutorial that there is paraview user guide , but this error shown :

p, li { white-space: pre-wrap; } Traceback (most recent call last):
File "<string>", line 3, in <module>
File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/vtk/__init__.py", line 1, in <module>
from vtkCommonPython import *
ImportError: No module named vtkCommonPython




:( please help me .



nimasam October 31, 2012 01:40

I assumed you are using OpenFOAM (i don't know why :D, may be because OpenFOAM is accompanied with Paraview)

so if you use OpenFOAM, you can use "foamCalc" to calculate divergence, then show it at paraview

ali jafari October 31, 2012 01:46

Quote:

Originally Posted by nimasam (Post 389392)
I assumed you are using OpenFOAM (i don't know why :D, may be because OpenFOAM is accompanied with Paraview)

so if you use OpenFOAM, you can use "foamCalc" to calculate divergence, then show it at paraview

Thanks for reply
I need to do more calculating over result such as 3D integral and ... because of it , I require python calculator details.


All times are GMT -4. The time now is 19:16.