CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Python calculator for divergence

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2012, 09:11
Unhappy Python calculator for divergence
  #1
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 13
ali jafari is on a distinguished road
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 .


ali jafari is offline   Reply With Quote

Old   October 31, 2012, 01:40
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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)
nimasam is offline   Reply With Quote

Old   October 31, 2012, 01:46
Default
  #3
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 13
ali jafari is on a distinguished road
Quote:
Originally Posted by nimasam View Post
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
Thanks for reply
I need to do more calculating over result such as 3D integral and ... because of it , I require python calculator details.
ali jafari is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:34.