|
[Sponsors] |
October 27, 2012, 09:11 |
Python calculator for divergence
|
#1 |
Member
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 13 |
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 . |
|
October 31, 2012, 01:40 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
I assumed you are using OpenFOAM (i don't know why , 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
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
October 31, 2012, 01:46 |
|
#3 | |
Member
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 13 |
Quote:
I need to do more calculating over result such as 3D integral and ... because of it , I require python calculator details. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Working with Python: Query of through-plane flow of multiple clips in one plot | PedroInvierno | EnSight | 8 | April 10, 2017 09:23 |
[foam-extend.org] compile error with python characteristic activated | shuoxue | OpenFOAM Installation | 1 | February 6, 2016 17:05 |
[OpenFOAM] using the python shell in paraFoam | colinB | ParaView | 14 | September 14, 2015 09:04 |
[OpenFOAM] paraview v4 - building with python - OF2.3.0, PVv4, Python 2.7 | aylalisa | ParaView | 4 | June 13, 2014 08:52 |
CentFOAM Python Script Installation: Error | socon009 | OpenFOAM Installation | 2 | May 26, 2012 09:36 |