CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Getting data into pvpython. (https://www.cfd-online.com/Forums/paraview/190742-getting-data-into-pvpython.html)

hdkruse July 21, 2017 04:47

Getting data into pvpython.
 
Hi I am trying to take a vtk mesh, and getting the area for each part as I move over the array. I have gotten this far with my script but I can't find a way to reliable get data out to pvpython when I change the position of my Clipbox.
I am new to Paraview and have read most of what I can find about this on the internet.
Code:

from paraview.simple import *
svtf=OpenDataFile('surface.vtk')
clip=Clip(Input=svtf)
clip.ClipType = "Box"
clip.ClipType.Scale = [0.1,1,1]
clip.InsideOut=1
areaint=IntegrateVariables(clip)



All times are GMT -4. The time now is 03:24.