CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

Python calculator for divergence

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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: 4
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, 02:40
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,124
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   October 31, 2012, 02:46
Default
  #3
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 4
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Python in Openfoam in-built paraFoam (paraView 3.8.0) Man Yue ParaView 6 November 30, 2012 07:57
How to get Python Shell into ParaView 3.8.1? blaise OpenFOAM Installation 3 July 24, 2012 04:58
Python Shell button is diabled JPW ParaView 2 July 23, 2012 08:44
CentFOAM Python Script Installation: Error socon009 OpenFOAM Installation 2 May 26, 2012 09:36
Fieldview 11.1 + Python to extract 3D core of data Rebecca FieldView 0 April 13, 2011 13:06


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